.net - Enitity Framework with long-running object context -


One of my main annoyances with Linq to SQL in WinForms (and I Dressage WPF) is the lack of support for long-running datacontexts

See.

The problem is that you can not get the update from the database, you only get the old record until you throw away the datacontext. This is okay for a web app when the page is alive for only milliseconds, but in the Winfreeze app with a lot of bound control, it is not so good that all old datacentext is connected and the users are sitting on the desktop.

My question is, does the EF still have this limit or can you get updated records of the EF without throwing the object context?

"post-text" itemprop = "text">

You can use the method to update the existing context.


Comments