Class Map Generator for Fluent NHibernate

2019-03-09 01:04发布

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.

4条回答
一夜七次
2楼-- · 2019-03-09 01:26

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

查看更多
三岁会撩人
3楼-- · 2019-03-09 01:27
祖国的老花朵
4楼-- · 2019-03-09 01:30

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

查看更多
我命由我不由天
5楼-- · 2019-03-09 01:53

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

查看更多
登录 后发表回答