Last post Jan 10, 2012 02:45 PM by vinneyk
Jan 10, 2012 02:45 PM|vinneyk|LINK
Hello all. I was just wondering what the community's thoughts were on UoW classes with regard to moderate-sized systems with multiple logical sub-domains. In short, I'm developing a web system which has multiple logical sub-domains, such as sales, production,
warehouse. The decision I'm currently struggling with is whether to create a unit of work class for each context.
In my mind, the benefit of going this route is that each class is pruned down to it's necessary repositories. The obvious downside is that there will be a good deal of overlap between the unit of work classes; a customer repository is necessary in both the
sales and shipping context. The more I think about it, it seems like a better idea to keep one unit of work class to be used in all contexts. However, I would be glad to receive some feedback oneway or another.