简体   繁体   中英

Entity Framework Core Initial Create MySql

I was working with a database in MSSQL and want to try out MySql 5.7.14. I installed the mysql connector and ran:

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. Any idea what I am doing wrong?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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