This is the second part of a series of articles about using NHibernate in an ASP.NET MVC application, you can read the first part here. Put it on the Bag We will continue by creating a map file for the Post class, this is a little bit different than the Category map file since now we have to represent a many-to-many relationship between Posts and Categories, we accomplish this by using the BAG element in the map file, this is the code of the Post.hbm.xml file: IMPORTANT: Set the build action of each ...
|
5
Shouts |
|
|||
No comments yet, be the first one to post comment.