There is no Detach(object entity)
on the DbContext
.
Do I have the ability to detach objects on EF code first?
This question is related to
entity-framework
entity-framework-4.1
ef-code-first
This is an option:
dbContext.Entry(entity).State = EntityState.Detached;
Source: Stackoverflow.com