The Output Paramter

Topics: Data Access Application Block, General discussion
Sep 5, 2008 at 1:19 AM
Dear all,

When the dbType is integer in the AddOutParameter method of enterprise library below, what value do I need to specify for the size paramter?

public
void AddOutParameter ( DbCommand command, string name, DbType dbType, int size )


thanks
Oct 9, 2008 at 8:33 AM
Hi,

          size
Type: System..::.Int32

The maximum size of the data within the column.


if want to be safe in your code, try using int.MaxValue

.Kratos