简体   繁体   English

实体框架核心初始创建MySql

[英]Entity Framework Core Initial Create MySql

I was working with a database in MSSQL and want to try out MySql 5.7.14. 我正在使用MSSQL中的数据库,并想尝试MySql 5.7.14。 I installed the mysql connector and ran: 我安装了mysql连接器并运行:

Add-Migration InitialCreate 

The result was 结果是

The property 'Records.Price' is of type 'decimal' which is not supported by current database provider.

So I tried, double and float. 所以我试了一下,加倍浮动。 Same issue. 同样的问题。 I know that MySql supports these data types. 我知道MySql支持这些数据类型。 Any idea what I am doing wrong? 知道我在做什么错吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM