EF6 MySQL StrongTypingException When Column is not PK

前端 未结 4 1448
北恋
北恋 2021-02-08 16:48

We are using MySql and Entity FrameWork with VS 2013 those are the tools installed:

  • MySql Server 5.7.8
  • MySql WorkBench 6.3.
  • MySql for Visual Stud
4条回答
  •  时光取名叫无心
    2021-02-08 17:17

    Entity Framework (version 6.1.3) and MySQL Server (5.7)

    One way to resolve the issue is,

    1. Open Services (services.msc) and restart MySQL57 service.
    2. Execute the following commands in MySQL.

      use <> set global optimizer_switch='derived_merge=OFF';

    3. Update the .edmx.

提交回复
热议问题