/// <summary> /// Deprecated Method for adding a new object to the ExpenseDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToExpenseDetails(ExpenseDetails expenseDetails) { base.AddObject("ExpenseDetails", expenseDetails); }
/// <summary> /// Create a new ExpenseDetails object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dateIncurred">Initial value of the DateIncurred property.</param> /// <param name="numberOfGuest">Initial value of the NumberOfGuest property.</param> /// <param name="extablishment">Initial value of the Extablishment property.</param> /// <param name="amount">Initial value of the Amount property.</param> /// <param name="amountPerPerson">Initial value of the AmountPerPerson property.</param> /// <param name="reportId">Initial value of the ReportId property.</param> public static ExpenseDetails CreateExpenseDetails(global::System.Int32 id, global::System.DateTime dateIncurred, global::System.Int32 numberOfGuest, global::System.String extablishment, global::System.Double amount, global::System.Double amountPerPerson, global::System.Int32 reportId) { ExpenseDetails expenseDetails = new ExpenseDetails(); expenseDetails.Id = id; expenseDetails.DateIncurred = dateIncurred; expenseDetails.NumberOfGuest = numberOfGuest; expenseDetails.Extablishment = extablishment; expenseDetails.Amount = amount; expenseDetails.AmountPerPerson = amountPerPerson; expenseDetails.ReportId = reportId; return expenseDetails; }