partial void UpdateUserInRole(UserInRole instance);
 public ActionResult DeleteUserInRole(UserInRole userInRole)
 {
     DBNLDataContext db = new DBNLDataContext();
     db.UserInRoles.DeleteOnSubmit(userInRole);
     db.SubmitChanges();
     return RedirectToAction("ListUserInRoles");
 }
 partial void DeleteUserInRole(UserInRole instance);
 partial void InsertUserInRole(UserInRole instance);
		private void detach_UserInRoles(UserInRole entity)
		{
			this.SendPropertyChanging();
			entity.Role = null;
		}
		private void attach_UserInRoles(UserInRole entity)
		{
			this.SendPropertyChanging();
			entity.Role = this;
		}