简体   繁体   English

Bin-在WPF中部署基于MySQL Entity Framework Provider的应用程序?

[英]Bin - deploying a MySQL Entity Framework Provider - based application in WPF?

I need to deploy a normal WPF application with the MySQL EF provider on a machine that don't have the MySQL Connector installed but obviously i got a sort of "Provider not found" exception. 我需要在没有安装MySQL连接器的计算机上用MySQL EF提供程序部署一个普通的WPF应用程序,但是显然我遇到了“找不到提供程序”的异常。

I copied the references data in the executable directory (MySQL.Data.Entity.dll, MySQL.Data.dll, etc..) 我将引用数据复制到了可执行目录(MySQL.Data.Entity.dll,MySQL.Data.dll等)中。

What i need to do? 我需要做什么?

Thank you 谢谢

You should reference in your Code (via Nuget) MySQL.Data and MySQL.Data.Entities. 您应该在代码中(通过Nuget)引用MySQL.Data和MySQL.Data.Entities。 Then it should work 那应该工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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