Page 1 of 1

Create Entity Classes From .NET Classes

Posted: Fri 09 Aug 2013 19:09
by Xorcist
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?

Re: Create Entity Classes From .NET Classes

Posted: Wed 14 Aug 2013 16:45
by Xorcist
So is there no easy way to take an existing .NET class and add it to the class list in the model explorer?

Re: Create Entity Classes From .NET Classes

Posted: Wed 14 Aug 2013 16:49
by Shalex
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.

Re: Create Entity Classes From .NET Classes

Posted: Wed 14 Aug 2013 17:42
by Xorcist
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.

Re: Create Entity Classes From .NET Classes

Posted: Thu 15 Aug 2013 14:27
by Shalex
Please post your feature request at http://devart.uservoice.com/forums/3867 ... -developer.