I have a magic number in the following code...
Microsoft.Practices.EnterpriseLibrary.Data.Database db = /* code omitted */;
db.AddOutParameter(command, "@ParamName", DbType.Int32, 8);
Is there a clean way to get the length of DbType.Int32
, as required for the last argument to AddOutParameter
?