环境: EntityFrameWork  CodeFirst+MySql

今天在提交一个外键字段的修改时报“Parameter '@columnType' must be defined.”

google了一下

解决方法在链接字符串中加入这样一句话“;Allow User Variables=True”就可以了。

<add name="AccountDB" connectionString="server=localhost;user id=root;password=root;port=3306;database=Account;Allow User Variables=True" providerName="MySql.Data.MySqlClient" />

 

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-09-30
  • 2021-05-01
  • 2021-06-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-08-30
  • 2022-03-07
相关资源
相似解决方案