简体   繁体   中英

Database tables to C# entity classes - generator for FluentNHibernate?

I am planning to use NHibernate for my next project with mapping through FluentNHibernate. I have a database already, so I have to generate C# classes for entities mapped to database tables.

What tool would you recommend (if there is any?) for automatic C# class generation for NH from MS SQL database?

Thanks for sharing.

NConstruct Lite将免费生成类和hbm映射文件,即使它不支持流畅的NHibernate,也不使用某些新的C#3.0功能。

Don't.

The whole point of object-relational mapping is to... well... map.

If you generate the classes from the database you may as well be using typed datasets.

Think about what you would want your classes to look like in the object world and then use NHibernate to map that to your database schema.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM