Visual Studio 2017 +实体框架+身份+ MySQL无法正常工作 [英] Visual Studio 2017 + entity framework + identity + mysql not working

查看:88
本文介绍了Visual Studio 2017 +实体框架+身份+ MySQL无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用默认项目在Visual Studio 2017中创建REST API. 这可以在SQL本地数据库中正常工作,但是当我尝试使用本教程将其转换为MySQL变体时: https://docs.microsoft.com/zh-cn/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider

I have been trying to create a REST API with visual studio 2017 using the default project. This works fine with a SQL local DB, but when I am trying to convert it to a MySQL variant using this tutorial: https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider

我收到此错误:

'The Entity Framework provider type 'MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity' registered in the application config file for the ADO.NET provider with invariant name 'MySql.Data.MySqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.'

本教程在Visual Studio 2015中运行良好. 我注意到诸如devart或mysql的dotnet连接器之类的其他内容对于Visual Studio 2017仍然不起作用,我是否还早呢?

This tutorial worked fine with visual studio 2015. I noticed that other stuff like dotnet connector from either devart or mysql do not work for visual studio 2017 yet, am I to early?

我尝试了以下解决方案: -使用MySQL的Enity框架

I have tried these solutions: - Enity Framework With MySQL

忘记告诉我我尝试了什么.

Forgot to tell what I tried.

推荐答案

该教程来自2013年.MySQL连接器尚不支持Visual Studio 2017,预计不久,与此同时,Devart的连接器可与Visual Studio一起使用2017和MySQL.

That tutorial is from 2013. MySQL connector doesn't yet support visual studio 2017, It's expected shortly, in the meantime Devart has a connector that works with Visual Studio 2017 and MySQL.

修改

MySQL现在原生支持Visual Studio2017.有关更多信息,请访问:

MySQL now natively supports Visual Studio 2017. More info at: https://dev.mysql.com/doc/visual-studio/en/visual-studio-install.html

这篇关于Visual Studio 2017 +实体框架+身份+ MySQL无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆