/// <summary> /// Create a new Order object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="customerId">Initial value of the CustomerId property.</param> /// <param name="shipperId">Initial value of the ShipperId property.</param> /// <param name="orderDate">Initial value of the OrderDate property.</param> /// <param name="totalCharge">Initial value of the TotalCharge property.</param> /// <param name="freight">Initial value of the Freight property.</param> /// <param name="shipDate">Initial value of the ShipDate property.</param> /// <param name="shipAddress">Initial value of the ShipAddress property.</param> public static Order CreateOrder(global::System.Int64 id, global::System.Int64 customerId, global::System.Int64 shipperId, global::System.DateTime orderDate, global::System.Double totalCharge, global::System.Double freight, global::System.DateTime shipDate, global::System.String shipAddress) { Order order = new Order(); order.Id = id; order.CustomerId = customerId; order.ShipperId = shipperId; order.OrderDate = orderDate; order.TotalCharge = totalCharge; order.Freight = freight; order.ShipDate = shipDate; order.ShipAddress = shipAddress; return order; }
/// <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); }