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