【问题标题】:Entity Framework Core Initial Create MySqlEntity Framework Core 初始创建 MySql
【发布时间】: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


【解决方案1】:
猜你喜欢
  • 2021-07-26
  • 2020-07-10
  • 2020-11-18
  • 2020-12-25
  • 2017-10-28
  • 1970-01-01
  • 2019-02-12
  • 1970-01-01
  • 2020-08-23
相关资源
最近更新 更多