Create Entity Classes From .NET Classes

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Xorcist
Posts: 4
Joined: Fri 09 Aug 2013 19:04

Create Entity Classes From .NET Classes

Post by Xorcist » Fri 09 Aug 2013 19:09

Does Entity Developer provide me with a means to take an existing .NET project and auto-generate entities and mappings for any of my existing .NET classes without having to manually create the entity classes by hand?

In other words, I have an application with NO database. I want to use NHibernate to generate a database for my app. So I want to take all my classes, feed them to Entity Developer, and then tweak the entity classes to generate my final mapping. Can this be done?

Xorcist
Posts: 4
Joined: Fri 09 Aug 2013 19:04

Re: Create Entity Classes From .NET Classes

Post by Xorcist » Wed 14 Aug 2013 16:45

So is there no easy way to take an existing .NET class and add it to the class list in the model explorer?

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

Re: Create Entity Classes From .NET Classes

Post by Shalex » Wed 14 Aug 2013 16:49

Entity Developer supports Database-First and Model-First approaches. You can also import separately stored hbm.xml mappings into one model. But there is no way to generate model basing on the .NET classes.

Xorcist
Posts: 4
Joined: Fri 09 Aug 2013 19:04

Re: Create Entity Classes From .NET Classes

Post by Xorcist » Wed 14 Aug 2013 17:42

I've added this as a feature request.

A big part of my company's interest in entity developer was to get our applications "ORM enabled" with Fluent NHibernate as quickly as possible.

It's still far easier than doing it by hand, but we already have all our entities, we just need an easy way to create our associations and build our mappings. Recreating all our entities is a bit tedious.

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

Re: Create Entity Classes From .NET Classes

Post by Shalex » Thu 15 Aug 2013 14:27

Please post your feature request at http://devart.uservoice.com/forums/3867 ... -developer.

Post Reply