We have a problem testing Entity Framework 4.
We have deployed a WCF service that implements the EF data context. Everything works fine until we change the data using SQL Server Studio.
Is there a way to stop the EF caching of our results or is there a way to activate the download?
Greetings
James
In the properties sheet of your model, you can set the Lazy Loading Enabled property.
Lazy Loading Enabled
Through the code, you can control lazy loading using the ObjectContextOptions.LazyLoadingEnabled property:
ObjectContextOptions.LazyLoadingEnabled
context.ContextOptions.LazyLoadingEnabled = false;
In EF4, I had to use this instead:
_context.Configuration.LazyLoadingEnabled = false;
Source: https://habr.com/ru/post/649794/More articles:How to clear cache on Eclipse Android Emulator - androidAutomatically disabling logging - javaNHibernate: updating collections during EventListener "PreUpdateEvent" - nhibernateIs there an existing way to use arbitrary C # expressions in XAML? - c #Celery - minimizes memory consumption - pythonIs it always better to use access methods, even when accessing a local state? - javaChanging window message flow - c ++How can I find out why my thread is stopped in ASP.NET? - asp.netHow to install web platform tools in Eclipse? - javaSSIS: Why is this not logged? - ssisAll Articles