aspnetboilerplate: update() method Bug
firstly, if I get a enetity used AsNoTracking() .
just like that: return await this.Context.BailunOrders.AsNoTracking().Where(a => a.OriginOrderNo == originNo.Trim()).FirstOrDefaultAsync();
and if I use Update(entity) to update the entity defined in IRepository but it doesnt work ~ that didn’t change value in database .
finally I have to define a new Update method to resovle the issue
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (8 by maintainers)
The alternative: “detach the previous owned entity entry first”