IsDbNull (int) , GetSqlInt32, DBNull.Value .IsNull Like:
public static int Int32(this SqlDataReader r, int ord)
{
var t = r.GetSqlInt32(ord);
return t.IsNull ? default(int) : t.Value;
}
, . , Sql- (SqlInt32 ) , .Value. # . INULable , .IsNull Nyllable < > .
, Sql- # ICOnvertible , .
- :-)