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? (映射文件的例子?)