Esempio n. 1
0
 public static void PopulateCity(City input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.CityId = Utilities.ToInt(reader[Medical.Apartment.Common.City.ColumnNames.CityId]);
     input.CountryId = Utilities.ToInt(reader[Medical.Apartment.Common.City.ColumnNames.CountryId]);
     input.Name = Utilities.ToString(reader[Medical.Apartment.Common.City.ColumnNames.Name]);
 }
Esempio n. 2
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;
        }