尝试使用 DDtek Datadirect Sybase 驱动程序作为 Enttiy Framework 6 的提供程序,无法正确配置

Trying to use DDtek Datadirect Sybase drivers as a provider for Enttiy Framework 6, can't get it configured correctly

尝试使用 DDtek Datadirect Sybase 驱动程序作为 Enttiy Framework 6 的提供程序,无法正确配置它..

3.3好像没有DDtek.Sybase.Entity,

我们有 4.2 的试用版,它有 DLL,所以我已经安装了它。

这是 web.config 的我的供应商部分,我认为错误存在于此

 <entityFramework>
             <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory,
         EntityFramework" />
             <providers>
               <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices,
         EntityFramework.SqlServer" />
               <provider invariantName="DDTek.Sybase.4.2" type="DDTek.Sybase.Entity.ProviderServices, DDTek.Sybase.Entity,
         Version=4.2.0.0, Culture=neutral, PublicKeyToken=c84cd5c63851e072" /  
         </providers>   
    </entityFramework>

这是我的连接字符串

<add name="DefaultConnection" connectionString="host='XXXX.XXX';Pooling=true;Port='6000';UID='XXXXX';Password=XXXXX;Database='XXXX';Min Pool Size=5;Load Balance Timeout=30;Connection Timeout = 30000;Max Pool Size=50;Workstation ID='SPN'; Clone Connection If Needed =true; Fetch Buffer Size = 40960" providerName="DDTek.Sybase.4.2" /> 

连接字符串减去 providername 位在 3.3 中有效,非 EF。

这是我遇到的错误...

The Entity Framework provider type 'DDTek.Sybase.Entity.ProviderServices, DDTek.Sybase.Entity, Version=4.2.0.0, Culture=neutral, PublicKeyToken=c84cd5c63851e072' registered in the application config file for the ADO.NET provider with invariant name 'DDTek.Sybase.4.2' 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.

查看更多文档,我将名称更改为 DDTek.Sybase(默认)而不是 DDTek.Sybase.4.2(建议安装多个版本(有,但只有一个支持 EF)

这是我得到的错误

The Entity Framework provider type 'DDTek.Sybase.Entity.ProviderServices, DDTek.Sybase.Entity, Version=4.2.0.0, Culture=neutral, PublicKeyToken=c84cd5c63851e072' registered in the application config file for the ADO.NET provider with invariant name 'DDTek.Sybase' 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.

有人使用 Progress/DataDirect 驱动程序成功设置了吗?

我是 Entity Framework 的 100% 菜鸟,所以没有想法太小,或未被认可

DataDirect 驱动程序不支持 EF 6.0,正如他们之前告诉我的那样,它 仅支持 5.0.

所以我在大约 10 分钟内将它转换为与 MSDB 一起使用(其中大部分是注释掉 Sybase + ddtek 的一些东西)

新的连接字符串如下所示

   <add name="DefaultConnectionMSold" connectionString="Data Source=XXXXXXXXX;Initial Catalog=my_project;Integrated Security=True" providerName="System.Data.SqlClient"/>