/// <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="id">Initial value of the Id property.</param> /// <param name="revisionNumber">Initial value of the RevisionNumber property.</param> /// <param name="orderDate">Initial value of the OrderDate property.</param> /// <param name="dueDate">Initial value of the DueDate property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="onlineOrderFlag">Initial value of the OnlineOrderFlag property.</param> /// <param name="salesOrderNumber">Initial value of the SalesOrderNumber property.</param> /// <param name="shipMethod">Initial value of the ShipMethod property.</param> /// <param name="subTotal">Initial value of the SubTotal property.</param> /// <param name="taxAmt">Initial value of the TaxAmt property.</param> /// <param name="freight">Initial value of the Freight property.</param> /// <param name="totalDue">Initial value of the TotalDue property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static Order CreateOrder(global::System.Int32 id, global::System.Byte revisionNumber, global::System.DateTime orderDate, global::System.DateTime dueDate, global::System.Byte status, global::System.Boolean onlineOrderFlag, global::System.String salesOrderNumber, global::System.String shipMethod, global::System.Decimal subTotal, global::System.Decimal taxAmt, global::System.Decimal freight, global::System.Decimal totalDue, global::System.Guid rowguid, global::System.DateTime modifiedDate) { Order order = new Order(); order.Id = id; order.RevisionNumber = revisionNumber; order.OrderDate = orderDate; order.DueDate = dueDate; order.Status = status; order.OnlineOrderFlag = onlineOrderFlag; order.SalesOrderNumber = salesOrderNumber; order.ShipMethod = shipMethod; order.SubTotal = subTotal; order.TaxAmt = taxAmt; order.Freight = freight; order.TotalDue = totalDue; order.rowguid = rowguid; order.ModifiedDate = modifiedDate; return order; }