MySQLNumberTypeMapping' does not support value conversions

前端 未结 3 2107
余生分开走
余生分开走 2021-02-14 07:44

I\'ve added a few models that I used to connect to a SQL database with and are now porting to MySQL . I am getting this error when I run : dotnet ef update --context {cont

3条回答
  •  悲&欢浪女
    2021-02-14 08:20

    In order to continue development I found a suitable solution was to

    Install-Package Pomelo.EntityFrameworkCore.Mysql -version 2.1.0-rc1-final

    using nuget console and modify any reference of options.UseMySQL to options.UseMySql.

    This allowed me to continue with dotnet 2.1 and utilize a mysql database.

    Hope this helps!

提交回复
热议问题