partial void DeleteUserRole(UserRole instance);
partial void UpdateUserRole(UserRole instance);
/// <summary> /// Deprecated Method for adding a new object to the UserRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserRoles(UserRole userRole) { base.AddObject("UserRoles", userRole); }
partial void InsertUserRole(UserRole instance);
/// <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; }