Beispiel #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();
     }
 }
Beispiel #2
0
 partial void DeleteRole(Role instance);
Beispiel #3
0
 partial void UpdateRole(Role instance);
Beispiel #4
0
 partial void InsertRole(Role instance);
Beispiel #5
0
		private void detach_Roles(Role entity)
		{
			this.SendPropertyChanging();
			entity.UsersInRole = null;
		}
Beispiel #6
0
		private void attach_Roles(Role entity)
		{
			this.SendPropertyChanging();
			entity.UsersInRole = this;
		}