Change from system.data.sqlclient to Microsoft.data.sqlclient

Stimulsoft Reports.WEB discussion
Post Reply
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Change from system.data.sqlclient to Microsoft.data.sqlclient

Post by FrenkR »

Hello,
is it possible to change client components for mssql from "System.Data.SqlClient" to "Microsoft.Data.SqlClient"? Currently, when changing components, I am getting error "System.Data.SqlClient is not supported on this platform.".

Rgds,
Frenk
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: Change from system.data.sqlclient to Microsoft.data.sqlclient

Post by Lech Kulikowski »

Hello,

Please clarify which product and version are you use?

Thank you.
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Re: Change from system.data.sqlclient to Microsoft.data.sqlclient

Post by FrenkR »

latest, Stimulsoft.Reports.Web.NetCore, 2020.4.1

currently, I am adding connection via "dictionary":

Code: Select all

this.Report.Dictionary.Databases.Add(new StiSqlDatabase(connName, connName, connString, false));
is there any settings where I tell that StiSqlDatabase uses "Microsoft.Data.SqlClient" instead of "System.Data.SqlClient"?
Rgds,
Frenk
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: Change from system.data.sqlclient to Microsoft.data.sqlclient

Post by Lech Kulikowski »

Hello,

Please provide more deatiled information, which platforms are you use?
System.Data.SqlClient is supported by most platforms, including all versions of NET Core

Thank you.
Post Reply