Exemplo n.º 1
0
        public void Insert(string ProductName, int?SupplierID, int?CategoryID, string QuantityPerUnit, decimal?UnitPrice, short?UnitsInStock, short?UnitsOnOrder, short?ReorderLevel, bool Discontinued, bool?IsDeleted)
        {
            Product item = new Product();

            item.ProductName = ProductName;

            item.SupplierID = SupplierID;

            item.CategoryID = CategoryID;

            item.QuantityPerUnit = QuantityPerUnit;

            item.UnitPrice = UnitPrice;

            item.UnitsInStock = UnitsInStock;

            item.UnitsOnOrder = UnitsOnOrder;

            item.ReorderLevel = ReorderLevel;

            item.Discontinued = Discontinued;

            item.IsDeleted = IsDeleted;


            item.Save(UserName);
        }
Exemplo n.º 2
0
        public void Insert(string ProductName,int? SupplierID,int? CategoryID,string QuantityPerUnit,decimal? UnitPrice,short? UnitsInStock,short? UnitsOnOrder,short? ReorderLevel,bool Discontinued,bool? IsDeleted)
        {
            Product item = new Product();

            item.ProductName = ProductName;

            item.SupplierID = SupplierID;

            item.CategoryID = CategoryID;

            item.QuantityPerUnit = QuantityPerUnit;

            item.UnitPrice = UnitPrice;

            item.UnitsInStock = UnitsInStock;

            item.UnitsOnOrder = UnitsOnOrder;

            item.ReorderLevel = ReorderLevel;

            item.Discontinued = Discontinued;

            item.IsDeleted = IsDeleted;

            item.Save(UserName);
        }