Entity Framework 4 - Generate Database from Model on existing database


  • I'm using an existing "sandbox" application (MVC) to nut out Entity Framework 4

    In the existing database I have all the tables created by my membership provider (aspnet_*).

    I created a new Ado.Net Entity Model using this database, added only my asnet_Users table, added an entity with a "UserId" property and created an association to my aspnet_Users.UserId column.

    Now when I run Generate Database from Model, the result sql want to drop my aspnet_User table (big no!) and also modify it (no no no!).

    Am I missing something obvious?e

    Thursday, April 29, 2010 2:07 PM