[IT-631] Fix EF repository base bugs (Exists, batch Add, DeleteAsync) #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes three bugs in BaseEfRepository:
Add(TEntity[])was calling SaveChanges after each entity — fixed to single SaveChanges after loopDeleteAsync(TEntityId)was double-saving via sync Delete chain — fixed to call DoRemove directlyDeleteAsync(TEntityId)was using sync GetById — fixed to use await GetByIdAsyncRef: IT-631