/// <summary> /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrders(Order order) { base.AddObject("Orders", order); }
/// <summary> /// Create a new Order object. /// </summary> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="orderCode">Initial value of the OrderCode property.</param> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="orderDate">Initial value of the OrderDate property.</param> /// <param name="totalMoney">Initial value of the TotalMoney property.</param> /// <param name="typePaymentID">Initial value of the TypePaymentID property.</param> /// <param name="status">Initial value of the Status property.</param> public static Order CreateOrder(global::System.Int32 orderID, global::System.String orderCode, global::System.Int32 userID, global::System.Int32 productID, global::System.DateTime orderDate, global::System.Int32 totalMoney, global::System.Int32 typePaymentID, global::System.Int32 status) { Order order = new Order(); order.OrderID = orderID; order.OrderCode = orderCode; order.UserID = userID; order.ProductID = productID; order.OrderDate = orderDate; order.TotalMoney = totalMoney; order.TypePaymentID = typePaymentID; order.Status = status; return order; }