示例#1
0
 /// <summary>
 /// Create a new Pedido object.
 /// </summary>
 /// <param name="salesOrderID">Initial value of the SalesOrderID 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="customerID">Initial value of the CustomerID property.</param>
 /// <param name="contactID">Initial value of the ContactID property.</param>
 /// <param name="billToAddressID">Initial value of the BillToAddressID property.</param>
 /// <param name="shipToAddressID">Initial value of the ShipToAddressID property.</param>
 /// <param name="shipMethodID">Initial value of the ShipMethodID 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 Pedido CreatePedido(global::System.Int32 salesOrderID, 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.Int32 customerID, global::System.Int32 contactID, global::System.Int32 billToAddressID, global::System.Int32 shipToAddressID, global::System.Int32 shipMethodID, global::System.Decimal subTotal, global::System.Decimal taxAmt, global::System.Decimal freight, global::System.Decimal totalDue, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     Pedido pedido = new Pedido();
     pedido.SalesOrderID = salesOrderID;
     pedido.RevisionNumber = revisionNumber;
     pedido.OrderDate = orderDate;
     pedido.DueDate = dueDate;
     pedido.Status = status;
     pedido.OnlineOrderFlag = onlineOrderFlag;
     pedido.SalesOrderNumber = salesOrderNumber;
     pedido.CustomerID = customerID;
     pedido.ContactID = contactID;
     pedido.BillToAddressID = billToAddressID;
     pedido.ShipToAddressID = shipToAddressID;
     pedido.ShipMethodID = shipMethodID;
     pedido.SubTotal = subTotal;
     pedido.TaxAmt = taxAmt;
     pedido.Freight = freight;
     pedido.TotalDue = totalDue;
     pedido.rowguid = rowguid;
     pedido.ModifiedDate = modifiedDate;
     return pedido;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Pedidos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPedidos(Pedido pedido)
 {
     base.AddObject("Pedidos", pedido);
 }