Upgrade EF 4 EDMX to EF 6

  1. You delete your old .tt files
  2. You open your edmx file in designer mode (so you can see your model)
  3. Right click on a free space
  4. Select Add Code Generation Item
  5. In the dialog select “EF 6.x DbContext Code Generation Item” (something like this)
  6. Save your edmx and all classes will be generated for you, with the new namespaces and so on

Leave a Comment