Esempio n. 1
0
 public static DateTime GetDate(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToDate(dr[key]));
 }
Esempio n. 2
0
 public static XmlDocument GetXml(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToXml(dr[key]));
 }
Esempio n. 3
0
 public static T GetValue <T>(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToVal <T>(dr[key]));
 }
Esempio n. 4
0
 public static Guid GetGuid(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToGuid(dr[key]));
 }
Esempio n. 5
0
 public static Guid?ToGuidNullable(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToGuidNullable(dr[key]));
 }
Esempio n. 6
0
 public static long GetLong(this IDataReader dr, string key, long ifNull = 0)
 {
     return(MapperHelpers.ToLong(dr[key]));
 }
Esempio n. 7
0
 public static int GetInt(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToInt(dr[key]));
 }
Esempio n. 8
0
 public static float GetFloat(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToFloat(dr[key]));
 }
Esempio n. 9
0
 public static decimal GetDecilmal(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToDecilmal(dr[key]));
 }
Esempio n. 10
0
 public static string GetString(this IDataReader dr, string key)
 {
     return(MapperHelpers.ToStr(dr[key]));
 }