/// <summary> /// 创建新的 OrgChart 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="path">Path 属性的初始值。</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 OrgChart CreateOrgChart(global::System.Decimal id, global::System.String name, global::System.String path, global::System.DateTime createdOn, global::System.Decimal createdByEmployeeId, global::System.DateTime modifiedOn, global::System.Decimal modifiedByEmployeeId, global::System.String isActive) { OrgChart orgChart = new OrgChart(); orgChart.Id = id; orgChart.Name = name; orgChart.Path = path; orgChart.CreatedOn = createdOn; orgChart.CreatedByEmployeeId = createdByEmployeeId; orgChart.ModifiedOn = modifiedOn; orgChart.ModifiedByEmployeeId = modifiedByEmployeeId; orgChart.IsActive = isActive; return orgChart; }
/// <summary> /// 用于向 OrgChart EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToOrgChart(OrgChart orgChart) { base.AddObject("OrgChart", orgChart); }