Recently I tried CodeSmith templates for NHibernate. As many of you might watched, there is a video explaining how to create a Petshop.Data using these templates. My question is what is the correct architecture in this approach? Should we have a BLL (or Services) layer to interact with this Petshop.Data or directly call ManagerFactory in our presentation layer? Also should our presentation layer be unaware of Business Objects in our Petshop.Data and shoud we have Business Entities in BLL again?
1
votes
3 Answers
2
votes
Please feel free to address these issues in our community site and on our template bug tracker. We take all feedback seriously and look over it daily.
Thanks -Blake Niemyjski
1
votes
1
votes
I have had a similar experience with CodeSmith. Here's a blog entry I made: http://hypertrends.com/Blog/post/2008/12/15/CodeSmith-to-create-NHibernate-Mappings-Honest-Thoughts.aspx