v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

commitchanges asynchronously

Issue Details

Log in to Track Changes or Edit
Q207647
Question
Sebastian Mańkowski
Yes
Processed
Answered
.NET
eXpress Persistent Objects
9.1.3
Windows Vista
Microsoft Visual Studio 2008
2/11/2010 12:38:51 PM
-> Created by Sebastian Mańkowski 5/31/2009 5:11:26 PM

Hi,

Is there a way to send committing changes of unitofwork to separate thread or do it in asynchronously way? I have a form, where committing takes few minutes (SalesOrder with houndred of rows, and each row has two associating collections). I would like to send commitchanges to separate thread using for example Parallel Extensions - Task.Create(...) - and catch progress on each row saved.

What is the best way to achieve this??

<- Reviewed by DevExpress Team 6/1/2009 6:18:34 AM
<- Processed (Answered) by DevExpress Team 6/1/2009 6:41:45 AM

Hello Sebastian,

The UnitOfWork in not thread-safe. You should use a separate UnitOfWork instance in each thread. As for the XPO DataLayer, each thread may create its own SimpleDataLayer object or you can create a single ThreadSafeDataLayer for the entire application. I advise that you review the AK2944 article.

Thanks,
Nick
--------------------
Check if Search Engine is able to answer questions faster than I do!

<- Processed (Customer Closed) by Sebastian Mańkowski 2/11/2010 12:38:51 PM

Implemented

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

No discussion on this article has been started yet.

Please login to start discussion.

v
v
Search
Searching Tips