我在下面的代码中有一个神奇的数字......
Microsoft.Practices.EnterpriseLibrary.Data.Database db = /* code omitted */;
db.AddOutParameter(command, "@ParamName", DbType.Int32, 8);
Run Code Online (Sandbox Code Playgroud)
是否有一种干净的方式来获得DbType.Int32最后一个参数所需的长度AddOutParameter?