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