Exemplo n.º 1
0
 public static void PopulateDistrict(District input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.DistrictId = Utilities.ToInt(reader[Medical.Apartment.Common.District.ColumnNames.DistrictId]);
     input.CityId = Utilities.ToInt(reader[Medical.Apartment.Common.District.ColumnNames.CityId]);
     input.Name = Utilities.ToString(reader[Medical.Apartment.Common.District.ColumnNames.Name]);
 }
Exemplo n.º 2
0
        public static District District(System.Data.IDataReader reader)
        {
            District result = null;

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

            return result;
        }