c# - How can I get the max value of SqlDbTypes like max SqlDbType.Int? -


I would like to assign some type of maxim values ​​to SQL type 2008 in some string type strings.

For example:

  string foo = MaxWhileIndBuffer (SqlDbType.Int); String Bo = MaxWalendebfour (SQLDB type SMILINT);  

How can I get this? Thank you

If I understand correctly, then you need it.

  var maxValue = System.Data.SqlTypes.SqlInt16.MaxValue; Var minValue = System.Data.SqlTypes.SqlInt16.MinValue;  

In the same way you can type in Sql ***. MaxValue can get or Sql ***. Properties for any SQL types MINValue .

See for more information.


Comments