Example #1
0
 public static DateTime getDateTime(this HanaDataReader reader, string tag, object def)
 {
     return(reader.canRead(tag, out ordinal) ? reader.GetDateTime(ordinal) : Convert.ToDateTime(def));
 }
Example #2
0
 public static decimal getDecimal(this HanaDataReader reader, string tag, object def)
 {
     return(reader.canRead(tag, out ordinal) ? reader.GetDecimal(ordinal) : Convert.ToDecimal(def));
 }
Example #3
0
 public static int getInt32(this HanaDataReader reader, string tag, object def)
 {
     return(reader.canRead(tag, out ordinal) ? reader.GetInt32(ordinal) : Convert.ToInt32(def));
 }
Example #4
0
 public static bool getBool(this HanaDataReader reader, string tag, object def)
 {
     return(reader.canRead(tag, out ordinal) ? reader.GetBoolean(ordinal) : Convert.ToBoolean(def));
 }
Example #5
0
 public static string getString(this HanaDataReader reader, string tag, object def)
 {
     return(reader.canRead(tag, out ordinal) ? reader.GetString(ordinal) : Convert.ToString(def));
 }