我正在使用Visual Studio 2017(v 15.2)。 Core 1.1並使用Sybase ASE 16.0 sp2。我也在Sybase SDK 16.0中使用Sybase.AdoNet4.AseClient .dll。Sybase ASE 16x和.NET Core 1.1發起SP調用
public IEnumerable<Countries> GetCountry()
{
var con = new AseConnection(ConnectionString); // No Errors
var cmd = con.CreateCommand(); // Error described below
return null;
}
的CreateCommand()
生成,在IDE(波浪紅線)執行以下操作: The type 'Db Connection is defined in an assembly that is not referenced. You must add a reference to assembly 'system.Data, Version=4.0.0.0, Culture=neutral, PublicKey=b77a5c561934e089'
我每PackageManger
- 安裝封裝System.Data.Common -version 4.1加載.0,加載但錯誤仍然存在。
- install-package System.Data.Common -version 4.3.0,加載但錯誤仍然存在。
- 試圖安裝安裝封裝System.Data.Common -version 4.0.0, 但得到一個錯誤(如下所示):
- 試圖安裝安裝封裝System.Data.Common -version 4.0.0.0,但得到上述同樣的錯誤(如下圖所示):
安裝-套餐:套餐恢復失敗。回滾'iKYC.API'的軟件包更改。 在行:1字符:16 +安裝封裝< < < < System.Data.Common -version 4.0.0 + CategoryInfo:NotSpecified:(:) [安裝封裝],異常 + FullyQualifiedErrorId:NuGetCmdletUnhandledException,的NuGet .PackageManagement.PowerShellCmdlets.InstallPacka geCommand
我還沒有加載EntityFrame的工作,因爲這是Sybase。 Sybase是我可以使用的唯一數據庫。
是否有人成功使用Sybase和CORE? –
我們一直致力於[此驅動程序](https://www.nuget.org/packages/AdoNetCore.AseClient)。 要閱讀一些文檔並查看它當前支持的更詳細的描述,請[在github上查看](https://github.com/DataAction/AdoNetCore.AseClient)。 –