コード例 #1
0
        /// <summary>
        /// Create a new ExpenseItem object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="rowVersion">Initial value of the RowVersion property.</param>
        /// <param name="description">Initial value of the Description property.</param>
        /// <param name="amount">Initial value of the Amount property.</param>
        /// <param name="dateIncurred">Initial value of the DateIncurred property.</param>
        /// <param name="expenseItem_ExpenseReport">Initial value of the ExpenseItem_ExpenseReport property.</param>
        public static ExpenseItem CreateExpenseItem(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String description, global::System.Decimal amount, global::System.DateTime dateIncurred, global::System.Int32 expenseItem_ExpenseReport)
        {
            ExpenseItem expenseItem = new ExpenseItem();

            expenseItem.Id           = id;
            expenseItem.RowVersion   = rowVersion;
            expenseItem.Description  = description;
            expenseItem.Amount       = amount;
            expenseItem.DateIncurred = dateIncurred;
            expenseItem.ExpenseItem_ExpenseReport = expenseItem_ExpenseReport;
            return(expenseItem);
        }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ExpenseItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToExpenseItems(ExpenseItem expenseItem)
 {
     base.AddObject("ExpenseItems", expenseItem);
 }