Migrate from NHibernate to EF

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
PeterM
Posts: 14
Joined: Tue 16 Jul 2013 12:53

Migrate from NHibernate to EF

Post by PeterM » Wed 23 Apr 2014 13:42

Hi,

I'd like to know if there is a direct option to move from NH to EF using Entity Developer Pro or if someone might have a best practice to do so.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Migrate from NHibernate to EF

Post by Shalex » Thu 24 Apr 2014 13:58

Please open your NHibernate model (*.hbml), run the Update Database From Model wizard. Then create a new Entity Framework model (*.edml), run the Update Model From Database wizard, add the needed template in the Templates node of Model Explorer. This should be enough.

marketally
Posts: 7
Joined: Mon 18 Mar 2019 00:39

Re: Migrate from NHibernate to EF

Post by marketally » Mon 18 Mar 2019 00:41

Does this apply to all migrations between supported platforms?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Migrate from NHibernate to EF

Post by Shalex » Mon 18 Mar 2019 17:45

Yes, Update To Database / Update From Database are implemented in all supported ORMs.

Post Reply