Esempio n. 1
0
 /// <summary>
 /// 用于向 Department EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToDepartment(Department department)
 {
     base.AddObject("Department", department);
 }
Esempio n. 2
0
 /// <summary>
 /// 创建新的 Department 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="createdOn">CreatedOn 属性的初始值。</param>
 /// <param name="createdByEmployeeId">CreatedByEmployeeId 属性的初始值。</param>
 /// <param name="modifiedOn">ModifiedOn 属性的初始值。</param>
 /// <param name="modifiedByEmployeeId">ModifiedByEmployeeId 属性的初始值。</param>
 /// <param name="isActive">IsActive 属性的初始值。</param>
 public static Department CreateDepartment(global::System.Decimal id, global::System.String name, global::System.DateTime createdOn, global::System.Decimal createdByEmployeeId, global::System.DateTime modifiedOn, global::System.Decimal modifiedByEmployeeId, global::System.String isActive)
 {
     Department department = new Department();
     department.Id = id;
     department.Name = name;
     department.CreatedOn = createdOn;
     department.CreatedByEmployeeId = createdByEmployeeId;
     department.ModifiedOn = modifiedOn;
     department.ModifiedByEmployeeId = modifiedByEmployeeId;
     department.IsActive = isActive;
     return department;
 }