/// <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="total">Initial value of the Total property.</param> public static Order CreateOrder(global::System.Int32 orderId, global::System.DateTime orderDate, global::System.Decimal total) { Order order = new Order(); order.OrderId = orderId; order.OrderDate = orderDate; order.Total = total; return order; }