0
试图环绕NHibernate的我的头,curiuos如何之情况会进行处理:我如何将这个映射到nHibernate中?
Post (postID, title, content, dateCreated)
Category (categoryID, name, postCount)
post_to_categories (postID, categoryID)
如果我创建一个Post
,它应该插入Post
,插入post_to_categories
和更新Category
的postCount
。
我计划也使用iRepository
模式。
这将如何完成与nHibernate? (映射文件的例子?)