Пример #1
0
        public static Country Country(System.Data.IDataReader reader)
        {
            Country result = null;

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

            return result;
        }
Пример #2
0
 public static void PopulateCountry(Country input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.CountryId = Utilities.ToInt(reader[RoomSearch.Common.Country.ColumnNames.CountryId]);
     input.Name = Utilities.ToString(reader[RoomSearch.Common.Country.ColumnNames.Name]);
 }