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