Exemple #1
0
 /// <summary>
 /// Set up the dataclasses to be containd.
 /// </summary>
 /// <param name="products">A array of the Products</param>
 /// <param name="categories">A array of the Categories</param>
 /// <param name="orders">A array of the Orders</param>
 /// <param name="ordersDetails">A array of the OrdersDetails</param>
 public Respiratory(Product[] products, Category[] categories, Order[] orders, OrderDetails[] ordersDetails)
 {
     this.products = products.ToList();
     this.categories = categories.ToList();
     this.orders = orders.ToList();
     this.ordersDetails = ordersDetails.ToList();
 }
Exemple #2
0
 public Product(string ProductName, object SupplierID, Category CategoryID, string QuantityPerUnit, double UnitPrice, int UnitsInStock, int UnitsOnOrder, int ReorderLevel, int Discontinued)
 {
     this.ProductName = ProductName;
     this.SupplierID = SupplierID;
     this.CategoryID = CategoryID;
     this.QuantityPerUnit = QuantityPerUnit;
     this.UnitPrice = UnitPrice;
     this.UnitsInStock = UnitsInStock;
     this.UnitsOnOrder = UnitsOnOrder;
     this.ReorderLevel = ReorderLevel;
     this.Discontinued = Discontinued;
 }