开发者

Tool to generate Fluent NHibernate mappings

开发者 https://www.devze.com 2022-12-25 01:22 出处:网络
I am trying to integrate NHibernate into an existing application with several hundred tables. Due to the fact that there apparently wasn\'t a strict adherence to conventions, I am unable to use Automa

I am trying to integrate NHibernate into an existing application with several hundred tables. Due to the fact that there apparently wasn't a strict adherence to conventions, I am unable to use Automap. As a result, I'm going to use Fluent to manually map over all of the associations.

Rather than doing it by hand, I'm hoping that there is a tool in existance that can either开发者_开发问答 run through my solution or the database and stub out mappings.

Does anyone know of any project out there with this in mind?

Thanks!


I don't know of a tool that does it in Fluent, but there are plenty of options for doing it with the old hbm xml files. CodeSmith and MyGeneration are two that are recommended as a starting point for your classes and hbms.


LLBLGen Pro V3 will do exactly this, it can generate either tradition .hbm.xml or fluent mappings for your entire database.


Old question, maybe still relevant to some. If you are looking for an open source solution, try NHibernate Mapping Generator

0

精彩评论

暂无评论...
验证码 换一张
取 消