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
|
Hi, I have the following setup: 1. WCF servcie handling all DB actions 2. multiple other components (Webs, ...) talking to that service 3. no distributed UOW or something (returning DTOs from the service for loose coupling) On the service I want to use EntityServiceBase (UnitOfWork per request). What I am wondering is, what are the best practices or recommendations on using the EntityServiceBase.UnitOfWork? So, if I do DB updates in child-methods of the service methods, do I have to pass in the UnitOfWork to all those child-methods? Or is there any neat solution I am missing? Thanks for any advice! |
|
|
what I did until now is the following: // WCF service class:
// IMyRepository
// RepositoryBase
// MyRepository
any suggestions/comments on this so far? what I was wondering is, how to inject the Context configuration programatically (not read from web.config) - anybod done this in this situation? |
|