SyntaxFix
Write A Post
Hire A Developer
Questions
This is an option:
dbContext.Entry(entity).State = EntityState.Detached;