/// <summary> /// Deprecated Method for adding a new object to the Expense EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExpense(Expense expense) { base.AddObject("Expense", expense); }
/// <summary> /// Create a new Expense object. /// </summary> /// <param name="eXPID">Initial value of the EXPID property.</param> /// <param name="rEPID">Initial value of the REPID property.</param> /// <param name="cCID">Initial value of the CCID property.</param> /// <param name="sum">Initial value of the Sum property.</param> /// <param name="vAT">Initial value of the VAT property.</param> /// <param name="date">Initial value of the Date property.</param> public static Expense CreateExpense(global::System.Int32 eXPID, global::System.String rEPID, global::System.Int32 cCID, global::System.Int32 sum, global::System.Int32 vAT, global::System.DateTime date) { Expense expense = new Expense(); expense.EXPID = eXPID; expense.REPID = rEPID; expense.CCID = cCID; expense.Sum = sum; expense.VAT = vAT; expense.Date = date; return expense; }