Using MyGeneration with Fluent NHibernate

六眼飞鱼酱① 提交于 2019-12-07 11:33:14

问题


I found a fantastic template for NHibernate code generation using MyGeneration here,

http://vucetica.blogspot.com/2009/01/nhibernate-template-for-mygeneration.html

This creates XML mapping files with the extension hbm.xml.

I was wonder if anybody knows of templates which support fluent NHibernate which defines the mapping using C# files.

Thanks


回答1:


When you are using Fluent NHiberate you needn't hbm files, you can generate them based on your domain model and conventions



来源:https://stackoverflow.com/questions/1683663/using-mygeneration-with-fluent-nhibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!