Updating edmx file is not working

Asked

Viewed 851 times

0

Whenever I do: UPDATE MODEL FROM DATABASE on top of my edmx file, it does everything right, including shows the table to be updated or the fields. It doesn’t make any mistakes, it acts as if everything is fine. But when I finish, it doesn’t change anything. Everything is as before. Does anyone know why? Usage EF 6.1, VS 2012 and Sql Server 2008.

  • Open your . edmx removes all tables and adds again.

  • No . edmx you remove the tables, then add again.

  • edmx has four files. Context.tt, Designer.Cs, edmx.tt and edmx.diagram. Do you say delete which ones? There is no dependency between them?

  • 1

    Open the . edmx with Visual studio. edmx.Diagram if I’m not mistaken

  • I have deleted edmx all and remade again. I have done so, but it should not be necessary.

  • 1

    I don’t trust the Entity update, always remove the designer’s tables and add again.

Show 1 more comment

1 answer

1


Remove the Designer tables and add again, this should solve. I often have problems when using update p/ update some new field in an existing table in . edmx

Browser other questions tagged

You are not signed in. Login or sign up in order to post.