예제 #1
0
 //**********************************************************
 //* Добавление новой роли
 //**********************************************************
 public static void AddRole(String rolename)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Role role = new Role { Name = rolename };
         db.Roles.InsertOnSubmit(role);
         db.SubmitChanges();
     }
 }
예제 #2
0
 partial void DeleteRole(Role instance);
예제 #3
0
 partial void UpdateRole(Role instance);
예제 #4
0
 partial void InsertRole(Role instance);
예제 #5
0
		private void detach_Roles(Role entity)
		{
			this.SendPropertyChanging();
			entity.UsersInRole = null;
		}
예제 #6
0
		private void attach_Roles(Role entity)
		{
			this.SendPropertyChanging();
			entity.UsersInRole = this;
		}