Class Map Generator for Fluent NHibernate

三世轮回 提交于 2019-12-31 08:44:19

问题


Is there a Class Map generator for Fluent NHibernate? I need something like db2hbm but I want it to generate Fluent Class Maps instead of xml mappings.

I am aware of AutoMapping for Fluent but that is not what I want. I want to be able to generate Class Map files from tables in database and push them to my src repository.


回答1:


You can do this with NHibernate Mapping Generator.




回答2:


You can do this with Visual NHibernate. Check the Fluent Nhibernate option on the Options screen to create FNH mapping code.




回答3:


LLBLGen Pro is a great tool that can do this and much more. It´s not free, but it´s worth every cent.




回答4:


This is the closest thing I've come across (T4 Templates example to generate Fluent NH mappings): http://www.pnpguidance.net/Post/SampleFluentNHibernateT4TemplatesCodeGenerationLINQToSQL.aspx



来源:https://stackoverflow.com/questions/2604362/class-map-generator-for-fluent-nhibernate

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