[IT-631] Fix EF repository base bugs (Exists, batch Add, DeleteAsync) #13

Closed
opened 2026-05-06 12:52:21 +03:00 by agrynco · 0 comments
Owner

Fixes three bugs in BaseEfRepository:

  • Add(TEntity[]) was calling SaveChanges after each entity — fixed to single SaveChanges after loop
  • DeleteAsync(TEntityId) was double-saving via sync Delete chain — fixed to call DoRemove directly
  • DeleteAsync(TEntityId) was using sync GetById — fixed to use await GetByIdAsync

Ref: IT-631

Fixes three bugs in BaseEfRepository: - `Add(TEntity[])` was calling SaveChanges after each entity — fixed to single SaveChanges after loop - `DeleteAsync(TEntityId)` was double-saving via sync Delete chain — fixed to call DoRemove directly - `DeleteAsync(TEntityId)` was using sync GetById — fixed to use await GetByIdAsync Ref: IT-631
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hrynco/hrynco-ef#13