/// <summary> /// 用于向 Project_Expense EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToProject_Expense(Project_Expense project_Expense) { base.AddObject("Project_Expense", project_Expense); }
/// <summary> /// 创建新的 Project_Expense 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="currencyType">CurrencyType 属性的初始值。</param> /// <param name="estimateExpense">EstimateExpense 属性的初始值。</param> /// <param name="projectID">ProjectID 属性的初始值。</param> public static Project_Expense CreateProject_Expense(global::System.Int32 id, global::System.String currencyType, global::System.String estimateExpense, global::System.Int32 projectID) { Project_Expense project_Expense = new Project_Expense(); project_Expense.ID = id; project_Expense.CurrencyType = currencyType; project_Expense.EstimateExpense = estimateExpense; project_Expense.ProjectID = projectID; return project_Expense; }