/// <summary> /// Deprecated Method for adding a new object to the UserGroups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserGroups(UserGroup userGroup) { base.AddObject("UserGroups", userGroup); }
/// <summary> /// Create a new UserGroup object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="groupId">Initial value of the GroupId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="roleId">Initial value of the RoleId property.</param> public static UserGroup CreateUserGroup(global::System.Int32 id, global::System.Int32 groupId, global::System.Int32 userId, global::System.Int32 roleId) { UserGroup userGroup = new UserGroup(); userGroup.Id = id; userGroup.GroupId = groupId; userGroup.UserId = userId; userGroup.RoleId = roleId; return userGroup; }