/// <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="orderDate">Initial value of the OrderDate property.</param> /// <param name="lastModifiedDate">Initial value of the LastModifiedDate property.</param> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="orderByID">Initial value of the OrderByID property.</param> /// <param name="orderStatusID">Initial value of the OrderStatusID property.</param> /// <param name="orderThoughID">Initial value of the OrderThoughID property.</param> public static Order CreateOrder(global::System.Int64 orderID, global::System.DateTime orderDate, global::System.DateTime lastModifiedDate, global::System.Int32 customerID, global::System.Int32 orderByID, global::System.Int16 orderStatusID, global::System.Byte orderThoughID) { Order order = new Order(); order.OrderID = orderID; order.OrderDate = orderDate; order.LastModifiedDate = lastModifiedDate; order.CustomerID = customerID; order.OrderByID = orderByID; order.OrderStatusID = orderStatusID; order.OrderThoughID = orderThoughID; return order; }