Asynchronous ObjectContext.SaveChanges ()?

I want to save changes SaveChangesfrom ObjectContext(Win applications) asynchronously, display a progress bar (or managed?) A progress bar (can I easily implement this) for the user, while he is able to continue working.

Mostly I want to override SaveChanges ObjectContext.

Has anyone thought of this before?

+3
source share
2 answers

change in 2013-03-12:

Since some people started lowering this answer, I think that for some reason this decision is no longer good.

, - . , , .


, . :

  • , ;

  • BeginInvoke , ;

  • , (, );

  • , , , :

+2

Entity Framework . , ADO.NET, . ADO.NET .

Task. , . , "" ObjectContext (, ,...), .

, . , .

2013-04-17:

EF6 ( , - ) , SaveChangesAsync. ADO.NET, , , (- , () ).

+3

Source: https://habr.com/ru/post/1713341/


All Articles