public static long GetInt64(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return((long)0); } return(reader.GetInt64(index)); }
public static string GetString(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return(string.Empty); } return(reader.GetString(index)); }
public static int GetInt32(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return(0); } return(reader.GetInt32(index)); }
public static Guid GetGuid(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return(Guid.Empty); } return(reader.GetGuid(index)); }
public static DateTime GetDateTime(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return(new DateTime(1900, 1, 1)); } return(reader.GetDateTime(index)); }
public static byte GetByte(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return((byte)0); } return(reader.GetByte(index)); }
public static bool GetBoolean(IDataReader reader, int index, EntityBase Entity) { if (reader.IsDBNull(index)) { Entity.AddNullField(reader.GetName(index)); return(false); } return(reader.GetBoolean(index)); }