Ejemplo n.º 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;
        }
Ejemplo n.º 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]);
 }