Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.18版本在linux系统上连接windows系统的sql server提示当前平台不支持 #386

Closed
sbeduc163com opened this issue May 13, 2024 · 4 comments

Comments

@sbeduc163com
Copy link

Microsoft.Data.SqlClient is not supported on this platform. 这个应该怎么解决?

@shuxinqin
Copy link
Owner

驱动支持的问题。

  1. 理论上 Microsoft.Data.SqlClient 没问题,你上网或自己分析下具体原因是什么,试着变更下 Microsoft.Data.SqlClient 版本号试试(nuget 安装指定的版本)...
  2. 尝试换个驱动,比如 System.Data.SqlClient ,换驱动后通过构建 dbConnectionFactory 工厂对象创建 MsSqlContext 对象即可,参考构造重载 https://github.com/shuxinqin/Chloe/blob/master/src/Chloe.SqlServer/MsSqlContext.cs#L15

@shuxinqin
Copy link
Owner

dotnet/SqlClient#2030 参考下~

@shuxinqin
Copy link
Owner

@sbeduc163com
Copy link
Author

可能是centos8对.net6支持的不好的原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants