I\'m using EF6 + WPF with MVVM design pattern in my desktop application. I\'m using also Autofac as DI container.
I read a lot about EF context lifetime management
Following method forces EF to requery the query to the database and do not cache the result:
this.context.someTable.AsNoTracking().Where(arg => arg.value == "value").Single();
The important method call is AsNoTracking