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