agrynco opened issue hrynco/hrynco-ef#13

agrynco
Wed, 06 May 2026 12:52:21 +0300

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

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