예제 #1
0
 /// <summary>
 /// Create a new Budget object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 public static Budget CreateBudget(global::System.Int32 id, global::System.Double amount)
 {
     Budget budget = new Budget();
     budget.ID = id;
     budget.Amount = amount;
     return budget;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Budgets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBudgets(Budget budget)
 {
     base.AddObject("Budgets", budget);
 }