开发者

Async Calls to Entity Framework

开发者 https://www.devze.com 2023-01-25 08:35 出处:网络
Anyo开发者_如何学Gone found a good way to make asynchronous calls to the db via entity framework? Use background worker thread? This is a WPF application.

Anyo开发者_如何学Gone found a good way to make asynchronous calls to the db via entity framework? Use background worker thread? This is a WPF application.

I know in RIA services there is a loadcompleted event that does not seem to exist in entity framework's object context.

Thanks!


I've written a blog post about async calls via commanding in a WPF application

http://devblog.terminto.com/2010/11/03/threading-as-command-in-mvvm/

At work I use the same technique and do calls to DB (EF4).

Is this useful, or are you asking about more entity framework-specific async methods?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号