Bip
Bip

Reputation: 913

Database first and ORMs

When building enterprise solutions, DB architect makes ER model and use SQL way of creating tables, procedures, views, indexes etc.

Is it possible to map that kind of entities to classes(i.e. POCO) with nHibernate? Or how to make your own mapping tool?

p.s. i don't want to use DB first EF solution :)

Upvotes: 0

Views: 106

Answers (1)

Helstein
Helstein

Reputation: 330

You can use tools like Visual NHibernate or NHibernate Mapping Generator to generate the mappings from database. Such tools are not perfect but they can do most of the work for you and then you can modify the mappings they generate if needed.

Upvotes: 2

Related Questions