/// <summary> /// Deprecated Method for adding a new object to the Expenses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExpenses(Expense expense) { base.AddObject("Expenses", expense); }
/// <summary> /// Create a new Expense object. /// </summary> /// <param name="expenseId">Initial value of the ExpenseId property.</param> public static Expense CreateExpense(global::System.Int32 expenseId) { Expense expense = new Expense(); expense.ExpenseId = expenseId; return expense; }