简体   繁体   中英

ASP.NET Web API 2 local MySQL code first

I have done simple Web API project using SQL server database with code first approach, see here . But I am not getting any helpful complete tutorial which explains how to create Web API using code first approach with MySQL as database. Could you please give me some sample example.

There isn't much difference since both are relational databases. You need to install the corresponding nuget ( Install-Package MySql.Data.Entity ), update connection string and you should be good to go

Here is detailed example - http://www.asp.net/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider

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