什么是在MySQL供应商? [英] What is in a mysql provider?

查看:671
本文介绍了什么是在MySQL供应商?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直劳作与上下车用一种变通方法的近3个月的MySQL Connector的问题。我最近甚至提起 bug报告。不过,我发现的MySQL Connector的先进LINQ使用的情况下没有的多个实例。有些可以追溯到2009年(3年),仍然没有得到解决。在几乎每一个实例中,用户交换的连接器。

I have been toiling with an issue with mysql connector on and off for the past 3 months using a workaround. I even filed a bug report recently. However, I have found multiple instances of mysql connector failing in situations of advanced linq use. Some dating back to 2009 ( 3 years ) and still unresolved. In almost every instance, the user switched connectors.

我正在考虑这样做。不过,我碰到看在我的项目里面存在的MySQL Connector。从我所知道的,它只是一个包含的.dll (mysql.data和mysql.data.entity)。在这之后,它仅在web.config中引用

I am considering doing the same. However, I came across looking at where mysql connector exists inside of my project. From what I can tell, it is only an included .dll (mysql.data and mysql.data.entity). After that, it is referenced only in web.config.

第一参考连接器是连接字符串中,的providerName =MySql.Data.MySqlClient

The first reference to the connector is in the connection string, providerName = "MySql.Data.MySqlClient".

第二基准是提供者的定义

The second reference is the definition of the provider

<system.data>
 <DbProviderFactories>
  <clear />
  <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" 
    description=".Net Framework Data Provider for MySQL"
    type="MySql.Data.MySqlClient.MySqlClientFactory, mysql.data, Version=6.5.4.0,
          Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
 </DbProviderFactories>
</system.data>

三是组件的内部

<add assembly="mysql.data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />

和最后一个是另一个集引用

And the last is another assembly reference

<dependentAssembly>
    <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-6.5.4.0" newVersion="6.5.4.0" />
</dependentAssembly>

这是真正连接器的整体足迹?

Is this really the whole footprint of the connector?

推荐答案

这真的是连接器的整体足迹?

是,也不是。

至于它引用的连接器项目而言,这是整个足迹。需要进行的唯一配置是 MySql.Data MySql.Data.Entity 添加为引用该项目。通常这些都是文件夹内,然后被复制到文件夹一次引用已添加。

As far as the project which references the connector is concerned, this is the whole footprint. The only configuration that needs to be made is to have MySql.Data and MySql.Data.Entity added as references to the project. Usually these are inside of the packages folder, and are then copied into the bin folder once a reference has been added.

该连接器具有大量的内部code的事情。因为它被定义,连接器从继承并在 DbProviderFactory 延伸。这个扩展涉及到许多类和子类它决定如何互动与MySQL颁布。因为它是开源的,实际的code可以从Oracle下载。

The connector has a lot of internal code going on. Because of where it is defined, the connector inherits from and extends on the DbProviderFactory. This extension involves many classes and sub classes which determine how the interaction to mysql is enacted. Because it is open source, the actual code can be downloaded from oracle.

这篇关于什么是在MySQL供应商?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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