0

AM working with MVC4 VS2012 and EF5.

I created a EDMX using the DataBase and the POCO(TT) Classes were generated Automatically.

Followed this way Entity Framework 5 and Visual Studio 2012 POCO Classes in Different Project to move POCO to different Project.

Now i edit my datatype (Int to String or AllowNull) or delete my table in SQL Server. i come and update my model(EDMX). But changes are not reflected.

Am i doing wrong or missing something ?

Thanks

Community
  • 1
  • 1
Peru
  • 2,871
  • 5
  • 37
  • 66

1 Answers1

1

I don't think you are missing anything.

I'm unsure of the logic used by the designer when it decides what to update. From experience it seems to mostly add new. I haven't seen much updating.

I tend to just delete the table and add it again as the least painful route. This will remove any custom mapping, so it's not ideal if your entities are very different from your tables.

Neil Thompson
  • 6,356
  • 2
  • 30
  • 53