コード例 #1
0
ファイル: Database.cs プロジェクト: shao200/Socialsystem
 /// <summary>
 /// 用于向 IncurredExpenses EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToIncurredExpenses(IncurredExpense incurredExpense)
 {
     base.AddObject("IncurredExpenses", incurredExpense);
 }
コード例 #2
0
ファイル: Database.cs プロジェクト: shao200/Socialsystem
 /// <summary>
 /// 创建新的 IncurredExpense 对象。
 /// </summary>
 /// <param name="id">ID 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="contentDescription">ContentDescription 属性的初始值。</param>
 /// <param name="place">Place 属性的初始值。</param>
 /// <param name="receiptNumber">ReceiptNumber 属性的初始值。</param>
 /// <param name="amount">Amount 属性的初始值。</param>
 /// <param name="taskID">TaskID 属性的初始值。</param>
 /// <param name="expenseType">ExpenseType 属性的初始值。</param>
 public static IncurredExpense CreateIncurredExpense(global::System.Int32 id, global::System.String name, global::System.String contentDescription, global::System.String place, global::System.String receiptNumber, global::System.String amount, global::System.Int32 taskID, global::System.String expenseType)
 {
     IncurredExpense incurredExpense = new IncurredExpense();
     incurredExpense.ID = id;
     incurredExpense.Name = name;
     incurredExpense.ContentDescription = contentDescription;
     incurredExpense.Place = place;
     incurredExpense.ReceiptNumber = receiptNumber;
     incurredExpense.Amount = amount;
     incurredExpense.TaskID = taskID;
     incurredExpense.ExpenseType = expenseType;
     return incurredExpense;
 }