예제 #1
0
        public static DateTime GetDBDateTimeValue(DbDataReader reader, string field)
        {
            object dbValue = DBTools.GetDBValue(reader, field, (object)DateTime.MinValue);

            if (dbValue == null)
            {
                return(DateTime.MinValue);
            }
            return((DateTime)dbValue);
        }
예제 #2
0
 public static long GetDBInt64Value(DbDataReader reader, string field)
 {
     return((long)DBTools.GetDBValue(reader, field, (object)0L));
 }
예제 #3
0
 public static int GetDBIntValue(DbDataReader reader, string field)
 {
     return((int)DBTools.GetDBValue(reader, field, (object)0));
 }
예제 #4
0
 public static string GetDBStringValue(DbDataReader reader, string field)
 {
     return((string)DBTools.GetDBValue(reader, field, (object)""));
 }
예제 #5
0
 public static bool GetDBBoolValue(DbDataReader reader, string field)
 {
     return((bool)DBTools.GetDBValue(reader, field, (object)false));
 }
예제 #6
0
 public static short GetDBShortValue(DbDataReader reader, string field)
 {
     return((short)DBTools.GetDBValue(reader, field, (object)(short)0));
 }
예제 #7
0
 public static double GetDBDoubleValue(DbDataReader reader, string field)
 {
     return((double)DBTools.GetDBValue(reader, field, (object)0.0));
 }
예제 #8
0
 public static Decimal GetDBDecimalValue(DbDataReader reader, string field)
 {
     return((Decimal)DBTools.GetDBValue(reader, field, (object)new Decimal(0)));
 }