How do you use NHibernate and ED?
Posted: Wed 25 Jun 2014 17:19
So, needless to say, if you take a look you'll see all kinds of posts from me trying to make ED+NHibernate work. I currently use NHibernate 2.2 using the format laid out in the book "NHibernate with ASP.NET Problem Design Solution". I've been running like this for several years now and am quite happy with it. However I feel it's time to upgrade to Nhibernate 3.3.x. I saw ED and thought wow that would be awesome to have something gen up code for me. While I have been able to get a domain, repository and application layer going I kinda lost the service layer (I try to follow domain driven design as well to the best of my ability).
My new approach is to ask those who obviously have gotten it to work for them if they could share some code snipets, pearls of wisdom, etc in this post. Maybe the way I'm trying to implement my code is the problem - wouldn't be the first time.
One thing I've noticed is the lack of any sample projects from devart. Or, if it exists, they are hiding it well. I did download the 50 mapping examples which was nice. But I want to see an entity model file that I can open and see how they implement things like the EntityObject template or the RepositoryAndUnitOfWork template. Those are the two that seem to mimic what I do in my current production system (just can't seem to make all of the connections, apparently). A complete visual studio project with two or three objects would be awesome as well.
My new approach is to ask those who obviously have gotten it to work for them if they could share some code snipets, pearls of wisdom, etc in this post. Maybe the way I'm trying to implement my code is the problem - wouldn't be the first time.
One thing I've noticed is the lack of any sample projects from devart. Or, if it exists, they are hiding it well. I did download the 50 mapping examples which was nice. But I want to see an entity model file that I can open and see how they implement things like the EntityObject template or the RepositoryAndUnitOfWork template. Those are the two that seem to mimic what I do in my current production system (just can't seem to make all of the connections, apparently). A complete visual studio project with two or three objects would be awesome as well.