Commit is an Infrastructure concept, you commit because you are working with a Database, a Repository / Dao, doesn't need to know it is commiting something, but it should do its work (abstract the access to the Database)
If two repositories work in the same Use Case, you will want to commit both of them together, you don't want each repository to Commit its work, the transaction is a concept on top of that. That's all. Gustavo. On Wed, Dec 16, 2009 at 9:15 PM, Broken Pipe <[email protected]>wrote: > Ok, i will consider you opinion and start with uNHAddins. > I don't quite understand a problem with aggregates across transaction? > (maybe i havn't faced it yet) or maybe i have but didn't know it is called > so -) I'm not very good with "Terms" yet. > Can you give me link or post some abstract code that explains this problem. > > On Wed, Dec 16, 2009 at 8:21 PM, Gustavo Ringel > <[email protected]>wrote: > >> I won't go that path, having a repository which commits...what if you want >> to commit a transaction across some aggregates? >> > > P.S > I started .NET Winforms development about 2 years ago, and only now (2 > months ago) i began to use patterns -) Before this i have finished 2 big > projects (3-tier WinForms SmartClient) and they are so ugly (from programers > poing of view) you can't even imagine -)) > They were implemented in Anti-Pattern, Autonomous view, copy-past style -) > > Here is the code metrics for Client part of one of my old project -) > Project: Client > Configuration: Release > Scope: Project > Assembly: ######## > Maintainability Index: 76 > Cyclomatic Complexity: 1 860 > Depth of Inheritance: 7 > Class Coupling: 415 > *Lines of Code: 10 807* > And my MainForm hand written part is 5626 lines -) and contains all layers > -) > > I hope my new project will have better implementation -) > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
