Page 1 of 1

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

Posted: Sun Aug 23, 2020 7:04 am
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

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

Posted: Mon Aug 24, 2020 5:59 pm
by Lech Kulikowski
Hello,

Please clarify which product and version are you use?

Thank you.

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

Posted: Tue Aug 25, 2020 4:10 pm
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

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

Posted: Thu Aug 27, 2020 6:45 am
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.