Example #1
0
 private static int ConvertToInt(object value)
 {
     return(Convert.ToInt32(NullUtil.IsDBNull(value, 0)));
 }
Example #2
0
 private static string ConvertToString(object value)
 {
     return(Convert.ToString(NullUtil.IsDBNull(value, 0)));
 }
Example #3
0
 private static DateTime ConvertToDateTime(object date)
 {
     return(Convert.ToDateTime(NullUtil.IsDBNull(date, "1970101")));
 }
Example #4
0
 private static double ConvertToDouble(object value)
 {
     return(Convert.ToDouble(NullUtil.IsDBNull(value, 0)));
 }
Example #5
0
 private static decimal ConvertToDecimal(object value)
 {
     return(Convert.ToDecimal(NullUtil.IsDBNull(value, 0)));
 }
Example #6
0
 private static long ConvertToLong(object value)
 {
     return(Convert.ToInt64(NullUtil.IsDBNull(value, 0)));
 }