fix : Error แก้ไข เนื่องจากกระทบการยกเลิก tracking entity id
Some checks failed
release-dev / release-dev (push) Failing after 13s
Some checks failed
release-dev / release-dev (push) Failing after 13s
This commit is contained in:
parent
069f427459
commit
bb9e79b06c
3 changed files with 84 additions and 6 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue