コード例 #1
0
ファイル: Chinook.Designer.cs プロジェクト: tforsberg/z
 /// <summary>
 /// Deprecated Method for adding a new object to the InvoiceLines EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoiceLines(InvoiceLine invoiceLine)
 {
     base.AddObject("InvoiceLines", invoiceLine);
 }
コード例 #2
0
ファイル: Chinook.Designer.cs プロジェクト: tforsberg/z
 /// <summary>
 /// Create a new InvoiceLine object.
 /// </summary>
 /// <param name="invoiceLineId">Initial value of the InvoiceLineId property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 public static InvoiceLine CreateInvoiceLine(global::System.Int32 invoiceLineId, global::System.Decimal unitPrice, global::System.Int32 quantity)
 {
     InvoiceLine invoiceLine = new InvoiceLine();
     invoiceLine.InvoiceLineId = invoiceLineId;
     invoiceLine.UnitPrice = unitPrice;
     invoiceLine.Quantity = quantity;
     return invoiceLine;
 }