views:

341

answers:

4

Do any .NET frameworks allow you to create Business Entities first then Database. In other words allow you to use DDD / Persistence Ignorance method of backing into the database later. Any tools that allow the Models/Classes you have written to generate the SQL DDL and migration scripts.

Feel free to rework my verbiage, and make it a better question.

+7  A: 

NHibernate supports domain-driven design, persistence ignorance, and automated data-model generation.

Justice
+2  A: 

You may opt for Castle ActiveRecord which hides the complexity of NHibernate and can create the schema from business entities with various options like creating a schema file and creating the database entities directly.

suhair
+2  A: 

Eco from CapableObjects does what you are asking for and much more. There is a bit of learning curve, but the productivity gain is amazing. Not in any way related with the company btw - just a very happy customer.

no_one
+2  A: 

DataObjects.Net is designed to support exactly this pattern.

Alex Yakunin