.net - 尝试在 .net 中使用 Mysql

标签 .net mysql entity

我安装了 MySQL 连接器但是这个错误

"System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed."

/// Initializes a new gerenteEntities object using the connection string found in the 'gerenteEntities' section of the application configuration file. Line 41: /// Line 42:
public gerenteEntities() : base("name=gerenteEntities", "gerenteEntities") Line 43: { Line 44:
this.ContextOptions.LazyLoadingEnabled = true;

似乎没有显示。我已经添加了引用,但它仍然不起作用。

我能做什么?

最佳答案

这与您前进的方向不同,但最近我在初始化与 MySQL 的连接时也遇到了问题。我最终找到的解决方案是使用 Tamir Gal 编写的 SharpSSH 代码(尽管对我的上下文进行了轻微修改),您可以免费获得。如果您的问题仍然存在,这可能值得研究。

关于.net - 尝试在 .net 中使用 Mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6899182/

相关文章:

mysql - Doctrine 2 加入实体 加入实体

javascript - Dynamics CRM 使用 XrmServiceToolkit.Soap 获取全局 OptionSet 数据

Symfony2 : best approach to use business (repository) logic in entity or controller

.net - 您认为什么是结构良好的 n 层 .Net 应用程序的示例?

c# - 我可以访问 Entity Framework 中 IDbCommandInterceptor 中的实体吗

c# - 图像坐标系统设计

SQL 子查询获取特定列

php - 无法使用PDO从sql获取数据

c# - 使用和方法参数传递

php - 无法将 JSON 数据正确加载到 Spinner 中