【发布时间】:2018-12-02 00:23:21
【问题描述】:
我正在使用 MSSQL 中的数据库并想试用 MySql 5.7.14。我安装了 mysql 连接器并运行:
Add-Migration InitialCreate
结果是
The property 'Records.Price' is of type 'decimal' which is not supported by current database provider.
所以我尝试了加倍和浮动。同样的问题。我知道 MySql 支持这些数据类型。知道我做错了什么吗?
【问题讨论】:
-
你试过
Double大写D吗? -
您能发布您的 dbcontext 代码以及您使用的 .net 内核版本吗?
标签: mysql entity-framework .net-core