我安装了 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/