コード例 #1
0
 public async Task RemoveByDiseaseAsync(int id)
 {
     RepositoryDbSet.RemoveRange(await GetByDiseaseIdAsync(id));
 }
コード例 #2
0
 public void DeleteAllRelationsForPerson(int personId)
 {
     RepositoryDbSet.RemoveRange(RepositoryDbSet.
                                 Where(w => w.Person1Id == personId || w.PersonId == personId));
 }