/// <summary> /// Create a new Budget object. /// </summary> /// <param name="budgetId">Initial value of the BudgetId property.</param> /// <param name="budgetDate">Initial value of the BudgetDate property.</param> /// <param name="budgetAmount">Initial value of the BudgetAmount property.</param> public static Budget CreateBudget(global::System.Int32 budgetId, global::System.DateTime budgetDate, global::System.Decimal budgetAmount) { Budget budget = new Budget(); budget.BudgetId = budgetId; budget.BudgetDate = budgetDate; budget.BudgetAmount = budgetAmount; return budget; }
/// <summary> /// Deprecated Method for adding a new object to the Budgets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBudgets(Budget budget) { base.AddObject("Budgets", budget); }