Last post Jun 23, 2017 01:48 AM by maherjendoubi
Jun 22, 2017 09:37 PM|RussGarrett|LINK
I am looking for a way to connect through a DSN to a database by way of the .NET Core framework. Hoping someone has done this before or can point me in the right direction.
Jun 22, 2017 10:25 PM|maherjendoubi|LINK
What do you mean by DSN?
Jun 22, 2017 10:30 PM|RussGarrett|LINK
Data source name (DSN) is a data structure that contains information about a database. The information is needed in order to connect to the database.
And I am specifically looking to connect to a system DSN
Jun 22, 2017 10:42 PM|maherjendoubi|LINK
Hope this could help you : https://github.com/aspnet/Entropy/blob/7a4ca4bfedebdffca133bc6ff10b4ccc6dc7a834/samples/Config.CustomConfigurationProviders.Sample/Microsoft.Extensions.Configuration.ConfigFile/ConfigFileConfigurationProvider.cs#L37
Jun 22, 2017 11:17 PM|RussGarrett|LINK
I get the below error when using DSN in my connection string.
System.ArgumentException: 'Keyword not supported: 'dsn'.'
Jun 23, 2017 01:48 AM|maherjendoubi|LINK
Here you go : An ODBC for .Net Core implementation based on old Mono version.
And precisely : https://github.com/LinqDan/Mono.Data.OdbcCore/blob/master/src/TestOdbcCore/Program.cs#L20
Hope that could help you.