Beispiel #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();
 }
Beispiel #2
0
 public OrderDetails(Order OrderID, Product ProductID, double UnitPrice, int Quantity, double Discount)
 {
     this.OrderID = OrderID;
     this.ProductID = ProductID;
     this.UnitPrice = UnitPrice;
     this.Quantity = Quantity;
     this.Discount = Discount;
 }