Carlos you know.... demand is the more easy thing to do... the hard one is think or share something.
2009/8/23 Carlos cubas <[email protected]> > I think foremost, you should tone down your demanding attitude. Everybody > is willing to help you just not with you demanding such attention. > > Again, you should really take a close look at the unhaddins impl, run the > samples, etc. I was in the same boat as you some time ago. And managed to > figure it out. It can't be that hard can it? > > -Carlos > > Practice makes perfect, but if no one is perfect, why practice? > > > > > > Date: Sun, 23 Aug 2009 08:50:34 -0700 > > Subject: [nhusers] Re: How to handle Session in WinForm project? > > From: [email protected] > > To: [email protected] > > > > > > > > > > > > > If you are all new to this, don't try to invent everything from > > > scratch in your first application. Either use the patterns and > > > libraries already mentioned or, if you want to really understand and > > > develop everything yourself, start simple. > > > > Yes! Because understanding is the most important thing! I am not going > > to just grab other people's bits and implementations without > > understanding them and start using them. That is not how I grow as a > > developer. I have to understand it. And that means I need information, > > and details. I need more information. > > > > > A rather simple approach > > > may be to define a service layer (e.g. just a single static class) > > > that has a public API derived from use cases > > > > "derived from use cases " - That's the first thing I've read that > > makes sense. Thank you. > > > > > and only in this layer > > > ISession objects and a session factory is allowed. Then in each public > > > method a fresh session is opened, data fetched, maybe some kind of > > > post-processing/conversion/transformation is done, and before > > > returning the result the session will be closed. This is the basic > > > idea of session per business transaction (or per use case). > > > > > > For applications that are not too complex this might suffice, in more > > > complex scenarios patterns like the mentioned persistence context > > > might be needed. > > > > > > Hope, this helps a little bit. > > > > A little bit. Thank you Stefan! > > > > -Chris > > > > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
