Trying to implement NHibernate

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

Trying to implement NHibernate

Post by edowney » Wed 11 Jun 2014 18:36

I'm a huge proponent for domain driven design and really love NHibernate. Currently I'm working on creating a domain in ED using the NHibernate template and Repository And Unit of Work template but I'm missing some options that I would think would be part of the template (mostly the standard crud stuff). Does Devart have any example projects I could look at supporting NHibernate? Thanx!

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Trying to implement NHibernate

Post by Shalex » Thu 12 Jun 2014 07:25

Please refer to If this doesn't help, specify the exact option(s) you are missing.

edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

Re: Trying to implement NHibernate

Post by edowney » Fri 13 Jun 2014 18:02

Unfortunately that didn't answer my question directly although the samples are a really good resource so thanks for that.

What I am looking for is something that will autogenerate the CRUD (Create, Read, Update, Delete) routines that will work with unit of work template. I've based a lot of my current nhibernate development on a book called .NET Domain-Driven Design with C#: Problem - Design - Solution by Tim McCarthy and Domain Driven Design by Eric Evans. In McCarthy's book he lays out a great n-tier NHibernate framework with an Application, Domain, Infrastructure, Repository and Service layer. I've been using this setup now for several years with great success.

The thought of being able to 'draw' the domain (classes and properties anyway) and auto-generate much of the code and the database schema was too much to resist when I first saw Entity Developer. Now it's just a matter of trying to figure out how to make it do what I need it to do to fit into my workflow.

edowney
Posts: 14
Joined: Thu 07 Mar 2013 13:10

Re: Trying to implement NHibernate

Post by edowney » Fri 13 Jun 2014 19:03

Ah, ok - never mind. I found what I was looking for. I found the NHibernateRepository.cs file and his friends which contained most of what I was looking for. Still no answer to the service layer but I guess I'll just have to roll my own.

Post Reply