internal void AddRole( Guid roleId, Guid userId ) { var userRole = new UsersRole(); userRole.RoleId = roleId; userRole.UserId = userId; _db.UsersRoles.InsertOnSubmit( userRole ); Save(); }
partial void DeleteUsersRole(UsersRole instance);
partial void UpdateUsersRole(UsersRole instance);
partial void InsertUsersRole(UsersRole instance);
private void detach_UsersRoles(UsersRole entity) { this.SendPropertyChanging(); entity.Role = null; }
private void attach_UsersRoles(UsersRole entity) { this.SendPropertyChanging(); entity.Role = this; }