private DBDiscountType GetDiscountTypeFromReader(IDataReader dataReader)
 {
     DBDiscountType discountType = new DBDiscountType();
     discountType.DiscountTypeID = NopSqlDataHelper.GetInt(dataReader, "DiscountTypeID");
     discountType.Name = NopSqlDataHelper.GetString(dataReader, "Name");
     return discountType;
 }
Ejemplo n.º 2
0
        private static DiscountType DBMapping(DBDiscountType dbItem)
        {
            if (dbItem == null)
            {
                return(null);
            }

            DiscountType item = new DiscountType();

            item.DiscountTypeID = dbItem.DiscountTypeID;
            item.Name           = dbItem.Name;

            return(item);
        }
Ejemplo n.º 3
0
        private static DiscountType DBMapping(DBDiscountType dbItem)
        {
            if (dbItem == null)
                return null;

            DiscountType item = new DiscountType();
            item.DiscountTypeID = dbItem.DiscountTypeID;
            item.Name = dbItem.Name;

            return item;
        }