Upgrade EF 4 EDMX to EF 6

前端 未结 3 1266
囚心锁ツ
囚心锁ツ 2020-11-29 23:03

My application is using a database first EDMX in EF 4. I would like to upgrade everything to EF 6. After getting EF 6 with NuGet I had to make a lot of changes to my classes

3条回答
  •  佛祖请我去吃肉
    2020-11-29 23:47

    As well as the steps Rand Random suggested. Remember to Install Entity Framework 6 Tools for Visual Studio 2012 if you are using VS2012. download here

    This will ensure that EF 6.x DbContext Generator template shows when clicking Step 4: Add Code Generation Item

提交回复
热议问题