Example #1
0
 public static DateTime?GetDateTimeOrNull(this DataProvider.IDataRow row, int index)
 {
     return(row.IsNull(index) ? null : (DateTime?)row.GetDateTime(index));
 }
Example #2
0
 public static decimal?GetDecimalOrNull(this DataProvider.IDataRow row, int index)
 {
     return(row.IsNull(index) ? null : (decimal?)row.GetDecimal(index));
 }
Example #3
0
 public static int?GetIntOrNull(this DataProvider.IDataRow row, int index)
 {
     return(row.IsNull(index) ? null : (int?)row.GetInt(index));
 }
Example #4
0
 public static long?GetLongOrNull(this DataProvider.IDataRow row, int index)
 {
     return(row.IsNull(index) ? null : (long?)row.GetLong(index));
 }
Example #5
0
 public static bool?GetBoolOrNull(this DataProvider.IDataRow row, int index)
 {
     return(row.IsNull(index) ? null : (bool?)row.GetBool(index));
 }