Пример #1
0
 internal void AddRole( Guid roleId, Guid userId )
 {
     var userRole = new UsersRole();
     userRole.RoleId = roleId;
     userRole.UserId = userId;
     _db.UsersRoles.InsertOnSubmit( userRole );
     Save();
 }
Пример #2
0
 partial void DeleteUsersRole(UsersRole instance);
Пример #3
0
 partial void UpdateUsersRole(UsersRole instance);
Пример #4
0
 partial void InsertUsersRole(UsersRole instance);
Пример #5
0
		private void detach_UsersRoles(UsersRole entity)
		{
			this.SendPropertyChanging();
			entity.Role = null;
		}
Пример #6
0
		private void attach_UsersRoles(UsersRole entity)
		{
			this.SendPropertyChanging();
			entity.Role = this;
		}