public bool AddUserRoleLink(Forum_Role Role, Forum_User User)
 {
     if (UserInRole(User, Role)) return false;
     var Link = new Forum_UserRoleLink();
     Link.RoleID = Role.RoleID;
     Link.UserID = User.UserID;
     db.Forum_UserRoleLinks.InsertOnSubmit(Link);
     return true;
 }
 public void DeleteUserRoleLink(Forum_UserRoleLink Link)
 {
     db.Forum_UserRoleLinks.DeleteOnSubmit(Link);
 }
Exemple #3
0
		private void detach_Forum_UserRoleLinks(Forum_UserRoleLink entity)
		{
			this.SendPropertyChanging();
			entity.Forum_User = null;
		}
Exemple #4
0
 partial void DeleteForum_UserRoleLink(Forum_UserRoleLink instance);
Exemple #5
0
 partial void UpdateForum_UserRoleLink(Forum_UserRoleLink instance);
Exemple #6
0
 partial void InsertForum_UserRoleLink(Forum_UserRoleLink instance);
Exemple #7
0
		private void attach_Forum_UserRoleLinks(Forum_UserRoleLink entity)
		{
			this.SendPropertyChanging();
			entity.Forum_Role = this;
		}