Exemplo n.º 1
0
 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]);
 }
Exemplo n.º 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;
        }