After reading tons of articles over the net about best-practise application-design and pattern I still cannot merge all the information together and map on my real-word-application...
I would like to have a 3-tiered application:
- UI-Layer:
A silverlight-application hosted within an ASP.net - Webapp - BusinessLogicLayer:
WCF-Services / .NET RIA-Services running on a different Server - DataAccessLayer:Using an ORM like nHibernate oder Linq2Entities
The problem is, I don t know where to put my business objects, and where to fill them with data.
Should there be an another layer, containing all my business objects, so they could be used in all other 3 layers?
Or should I place them into my BLL and call nHibernate-Methods in the DAL - but then I would have a circular dependency between BLL and DAL?
Isn t it "over-architectured" if I introduce "DataAccessObjects" inside the DAL and just copy all the properties into the BusinessObjects in the BLL?
Any help appreciated!
Best regards, Daniel Lang