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

Using Microsoft.Data.SqlClient results in PlatformNotSupportedException #19

Open
Iulian94 opened this issue Jul 3, 2024 · 0 comments
Open

Comments

@Iulian94
Copy link

Iulian94 commented Jul 3, 2024

Something went wrong executing the template in .NET Core: System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform.
at Microsoft.Data.SqlClient.SqlConnection..ctor(String connectionString)
at ConsoleApp2.DbUtils.GetColumnDetails(String connectionString) in D:\Projects\Test\ConsoleApp2\ConsoleApp2\DbUtils.cs:line 28
at ConsoleApp2.DbUtils.GetTableDetails(String connectionString) in D:\Projects\Test\ConsoleApp2\ConsoleApp2\DbUtils.cs:line 11
at RdJNL.TextTemplatingCore.GeneratedTemplate.Template.TransformText()
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at RdJNL.TemplateExecute.Program.Main(String[] args) in C:\Dev\TextTemplatingCore\TemplateExecute\Program.cs:line 103 ConsoleApp2 D:\Projects\Test\ConsoleApp2\ConsoleApp2\DbModelsGenerator.tt 1

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

1 participant