コード例 #1
0
 /// <summary>
 /// Create a new Budget object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="projectHeadID">Initial value of the ProjectHeadID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Budget CreateBudget(global::System.Int32 id, global::System.Int32 projectHeadID, global::System.Double amount, global::System.Boolean isActive)
 {
     Budget budget = new Budget();
     budget.ID = id;
     budget.ProjectHeadID = projectHeadID;
     budget.Amount = amount;
     budget.IsActive = isActive;
     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);
 }