This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Im working on a application and I want to have data downloaded from database on a different thread, so that my C# WPF UI won't freeze. Using one UnitofWork was out of question, so I created another one just for this thread and it works, at least for now, however I have a feeling that this might fail badly. I started looking on the web and found interesting information on class called "Repository" (This topic). The most interesting part is "thread scope" that is connected to repositories, however i couldn't find any useful information on it. Could you provide some sort of information how to use them? Also having examples would be great. |
|
|
UnitOfWork (which acts as the repository) is not thread-safe so either using one instance per thread or having concurrency control are your two options.
|
|