コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ExpenseHeaders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToExpenseHeaders(ExpenseHeader expenseHeader)
 {
     base.AddObject("ExpenseHeaders", expenseHeader);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ExpenseHeader object.
 /// </summary>
 /// <param name="expenseId">Initial value of the ExpenseId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="accountNumber">Initial value of the AccountNumber property.</param>
 public static ExpenseHeader CreateExpenseHeader(global::System.Int32 expenseId, global::System.String name, global::System.Int32 accountNumber)
 {
     ExpenseHeader expenseHeader = new ExpenseHeader();
     expenseHeader.ExpenseId = expenseId;
     expenseHeader.Name = name;
     expenseHeader.AccountNumber = accountNumber;
     return expenseHeader;
 }