Hello all,
I've been reading a lot lately about NHibernate and been trying it out with small examples and tests.
Now the time has come to choose the OR mapping tool with which we're going to work and I'm a bit lost.
The thing is, we were thinking of using Genwise initially with NHibernate, but then, looking at the generated code I was somewhat lost-
each plain old C# object generated have a related factory. the CRUD is based on the ICriteria queries, each factory contains a sessionScope, criteria 'get' (or fetch) queries don't use generics and it seems to me that as far as lazy loading goes, you need to remember each time to reopen the session whenever wanting to lazy load the IList property...
Does this make sense to anyone? Does anyone have an opinion about the Genwise templates? Are there any best practices for winforms I can follow (I've only came up with the asp.net best practices code project article)?
Any suggestions on where to start and how?
|