public static void PopulateRealestateType(RealestateType input, System.Data.IDataReader reader) { PopulateRecord(input, reader); input.RecordId = input.RealestateTypeId = Utilities.ToInt(reader[RoomSearch.Common.RealestateType.ColumnNames.RealestateTypeId]); input.Name = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Name]); input.Description = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Description]); }
public static RealestateType RealestateType(System.Data.IDataReader reader) { RealestateType result = null; if (null != reader && reader.Read()) { result = new RealestateType(); PopulateRealestateType(result, reader); } return(result); }
public static RealestateType RealestateType(System.Data.IDataReader reader) { RealestateType result = null; if (null != reader && reader.Read()) { result = new RealestateType(); PopulateRealestateType(result, reader); } return result; }
public static void PopulateRealestateType(RealestateType input, System.Data.IDataReader reader) { PopulateRecord(input, reader); input.RecordId = input.RealestateTypeId = Utilities.ToInt(reader[RoomSearch.Common.RealestateType.ColumnNames.RealestateTypeId]); input.Name = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Name]); input.Description = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Description]); }
public static List<RealestateType> ListRealestateType(bool insertAllItem) { List<RealestateType> result = new DataLayer().ListRealestateType(); if (insertAllItem) { RealestateType rt = new RealestateType(); rt.Name = "Tất cả"; result.Insert(0, rt); } return result; }