tags:

views:

22

answers:

1

Hi all,

I am looking for the right n-tier modal to adapt to my new nhibernate project. I am quite new to it. I currently have several entities and their corrosponding mapping classes. I can't seem to figure if the entities should act as the BL level classes, or merly an object oriented part of my DAL.

Can anyone help shed light on this?

Thank you.

+2  A: 

Your entities are defenetly are part of BL layer. They should reflect business meaning. For example if you are writing online shop you will have User entity and it will have list of Order entities and so on.

You can have a look at different examples and best practices of NHibernate usage, such as Sharp Architecture and Nhibernate best practices they all are putting entities in the business layer while their mappings are in data access.

Sly