nhibernate generate mapping files from existing database

旧巷老猫 提交于 2020-01-05 06:42:26

问题


I'm working with NHibernate.

We have a huge existing Database (more than 1.000 tables). I want to map all those tables with NHibernate (with hbm.xml and cs files).

I tried to do the job with the NHibernate Mapping Generator, unfortunately the generated files are not able to compile. Too many little errors caused by multiple Foreign Keys related to same Table or Case Sensitivity (wrong namespace ,...) and so on.

So my question...is there a tool outside which is still supported and has a huge amount of setting-options? What about the Entity Developer (https://www.devart.com/entitydeveloper/)?

Is it a common process to map an existing giant database or am I doing something wrong?

Thank you very much.

来源:https://stackoverflow.com/questions/43069918/nhibernate-generate-mapping-files-from-existing-database

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