Polo
Polo

Reputation: 1820

Map entities to database with Entity Framework

I've made a quite big domain model with entity framework. I wanted to know if it is possible to map it so i create automaticly the tables in the database wanted?

I've looked up edmgen.exe but still couldn't find the right command.

thank's for helping!

Edit1: I know the tool LightSpeed from Mindscape ofer this features that's why i think that entity framework does the same.

Edit2 : Non one likes me...

Upvotes: 3

Views: 1573

Answers (3)

marc_s
marc_s

Reputation: 755321

According to this blog entry, it's currently (v1) not possible to create the database from an entity model.

About half way down, under the heading of "2. Process and tooling issues", you'll find:

  • It is not currently possible to create the database schema automatically from the Entity Model. This is simply extraordinary - as it seems to easy to do!

Let's hope for EF v2 (in .NET 4.0 / VS2010).

Marc

Upvotes: 2

Oscar Cabrero
Oscar Cabrero

Reputation: 4169

currently this is not available but i thing this feature will be shipped with vs2010

Upvotes: 2

CodeRedick
CodeRedick

Reputation: 7415

My guess is that the answer is "no." The Entity Framework isn't necessarily meant to map 1-1 to the database, it's actually supposed to be a business object representation of how you want to use data stored in the database. Therefore it would be very, very difficult to write something that created a database from your Entity Model since you can't expect things to be mapped back to the database on a 1-1 level.

Upvotes: 1

Related Questions