/// <summary> /// Deprecated Method for adding a new object to the UserRole EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserRole(UserRole userRole) { base.AddObject("UserRole", userRole); }
/// <summary> /// Create a new UserRole object. /// </summary> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="roleID">Initial value of the RoleID property.</param> public static UserRole CreateUserRole(global::System.Int32 userID, global::System.Int32 roleID) { UserRole userRole = new UserRole(); userRole.UserID = userID; userRole.RoleID = roleID; return userRole; }