fix : Error แก้ไข เนื่องจากกระทบการยกเลิก tracking entity id
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
Suphonchai Phoonsawat 2024-09-13 11:22:47 +07:00
parent 069f427459
commit bb9e79b06c
3 changed files with 84 additions and 6 deletions

View file

@ -77,7 +77,7 @@ namespace BMA.EHR.Application.Repositories.Leaves
(entity as EntityBase).LastUpdatedAt = DateTime.Now;
}
_dbContext.Detach(entity);
//_dbContext.Detach(entity);
_dbSet.Update(entity);
await _dbContext.SaveChangesAsync();