public static City City(System.Data.IDataReader reader) { City result = null; if (null != reader && reader.Read()) { result = new City(); PopulateCity(result, reader); } return result; }
public static void PopulateCity(City input, System.Data.IDataReader reader) { PopulateRecord(input, reader); input.RecordId = input.CityId = Utilities.ToInt(reader[RoomSearch.Common.City.ColumnNames.CityId]); input.CountryId = Utilities.ToInt(reader[RoomSearch.Common.City.ColumnNames.CountryId]); input.Name = Utilities.ToString(reader[RoomSearch.Common.City.ColumnNames.Name]); }