/// <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="userId">Initial value of the UserId property.</param> /// <param name="orderTotal">Initial value of the OrderTotal property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="orderStatusCode">Initial value of the OrderStatusCode property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static Order CreateOrder(global::System.Int32 orderId, global::System.Int32 userId, global::System.Decimal orderTotal, global::System.DateTime createDate, global::System.Int32 orderStatusCode, global::System.String createdBy) { Order order = new Order(); order.OrderId = orderId; order.UserId = userId; order.OrderTotal = orderTotal; order.CreateDate = createDate; order.OrderStatusCode = orderStatusCode; order.CreatedBy = createdBy; return order; }