/// <summary> /// Deprecated Method for adding a new object to the RolePrivileges EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRolePrivileges(RolePrivilege rolePrivilege) { base.AddObject("RolePrivileges", rolePrivilege); }
/// <summary> /// Create a new RolePrivilege object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="roleId">Initial value of the RoleId property.</param> /// <param name="privilegeId">Initial value of the PrivilegeId property.</param> public static RolePrivilege CreateRolePrivilege(global::System.Guid id, global::System.Guid roleId, global::System.Guid privilegeId) { RolePrivilege rolePrivilege = new RolePrivilege(); rolePrivilege.Id = id; rolePrivilege.RoleId = roleId; rolePrivilege.PrivilegeId = privilegeId; return rolePrivilege; }