/// <summary> /// 用于向 WorkSpaceRoles EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToWorkSpaceRoles(WorkSpaceRole workSpaceRole) { base.AddObject("WorkSpaceRoles", workSpaceRole); }
/// <summary> /// 创建新的 WorkSpaceRole 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="type">Type 属性的初始值。</param> /// <param name="workSpaceID">WorkSpaceID 属性的初始值。</param> /// <param name="organizationID">OrganizationID 属性的初始值。</param> /// <param name="descript">Descript 属性的初始值。</param> /// <param name="creater">Creater 属性的初始值。</param> public static WorkSpaceRole CreateWorkSpaceRole(global::System.Int32 id, global::System.String type, global::System.Int32 workSpaceID, global::System.Int32 organizationID, global::System.String descript, global::System.String creater) { WorkSpaceRole workSpaceRole = new WorkSpaceRole(); workSpaceRole.Id = id; workSpaceRole.Type = type; workSpaceRole.WorkSpaceID = workSpaceID; workSpaceRole.OrganizationID = organizationID; workSpaceRole.Descript = descript; workSpaceRole.Creater = creater; return workSpaceRole; }