So I'm going to be doing a rewrite of a project, going from .NET 1.1 to .NET 3.5, and to the newest version of NHibernate.
My question involves how to structure the project in order to use the cool stuff from NHibernate while still doing sort of an "n-tier" project.
The reason being, there are a couple of separate projects all using the same database:
I seem to remember way back when I was doing some Java, the big thing was doing IoC and using Spring and Hibernate to kind of plug all this stuff together so it worked all slick, but I'm having a hard time finding examples of how to set this stuff up in the .NET 3.5 world. I'm really open to a lot of ideas, as long as I'm able to make all of those different things above work together
I'd even be open to not using Hibernate if there was a compelling reason not to, but I'm STRONGLY against using the generated-code Entity framework solution requiring me to walk through wizards to get stuff to work. POCO's only, please. Also, having to modify 6 different files every time I want to add a method to a DAO is pretty janky IMHO.
So how should I do this?
My question involves how to structure the project in order to use the cool stuff from NHibernate while still doing sort of an "n-tier" project.
The reason being, there are a couple of separate projects all using the same database:
- Public website, which is really read-only, with maybe an email sign-up form or whatever.
- Data import console app
- Private "intranet" website, which is read/write
- Data export console app
- Web services/image host, which is really read-only but might have one or two write methods
- Another public website that will communicate only with the web services host, but would be nice to use the same objects and managers (or at least the same IManagers, if that's the way I go). However, in the old project it's using a separate set of objects and managers that just talk to the web service site, and that's totally okay with me. The reason it would be nice to have both is to maybe have a separate control library to display things between the public and web service sites.
I seem to remember way back when I was doing some Java, the big thing was doing IoC and using Spring and Hibernate to kind of plug all this stuff together so it worked all slick, but I'm having a hard time finding examples of how to set this stuff up in the .NET 3.5 world. I'm really open to a lot of ideas, as long as I'm able to make all of those different things above work together
I'd even be open to not using Hibernate if there was a compelling reason not to, but I'm STRONGLY against using the generated-code Entity framework solution requiring me to walk through wizards to get stuff to work. POCO's only, please. Also, having to modify 6 different files every time I want to add a method to a DAO is pretty janky IMHO.
So how should I do this?