开发者

NHibernate - Generate Domain from Database

开发者 https://www.devze.com 2023-01-16 10:26 出处:网络
I know its possible to generate the database tables from the domain model.But is there any way of doing things the other way.I have a totally awful database (worst I have ever seen).Its sharded (16 Sh

I know its possible to generate the database tables from the domain model. But is there any way of doing things the other way. I have a totally awful database (worst I have ever seen). Its sharded (16 Shards!!), split across multiple postgres databases (all on the same server) with foreign key relations like urn:dbtable:guid.

Its proving a major pain in the ass to migrate using SSIS so I want to use NHibernate, read the data into objects and rewrite to a SQL Server database in blissful data-architectural harmony.

Is t开发者_如何学JAVAhere any way to scan the current DB using NH or other and build a domain model and mappings?

Thanks!


NHibernate Mapping Generator
- A simple utility to generate NHibernate mapping files and corresponding domain classes from existing DB tables

It's free.

0

精彩评论

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

关注公众号