public static void PopulateCountry(Country input, System.Data.IDataReader reader) { PopulateRecord(input, reader); input.RecordId = input.CountryId = Utilities.ToInt(reader[Mimosa.Apartment.Common.Country.ColumnNames.CountryId]); input.Name = Utilities.ToString(reader[Mimosa.Apartment.Common.Country.ColumnNames.Name]); }
public static Country Country(System.Data.IDataReader reader) { Country result = null; if (null != reader && reader.Read()) { result = new Country(); PopulateCountry(result, reader); } return result; }