示例#1
0
        public static City City(System.Data.IDataReader reader)
        {
            City result = null;

            if (null != reader && reader.Read())
            {
                result = new City();
                PopulateCity(result, reader);
            }

            return result;
        }
示例#2
0
 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]);
 }