SQLProvider
SQLProvider copied to clipboard
Can't add connection string in fsx file
Description
When adding a new connection to the typeprovider like this:
let [<Literal>] CompileTimeConnectionString = "Data Source=..."
type Sql = SqlDataProvider<Common.DatabaseProviderTypes.MSSQLSERVER, ConnectionString = CompileTimeConnectionString, UseOptionTypes=true>
I receiving following error message:
This expression was expected to have type 'System.String'
but here has type 'string'
I used the SqlProvider load script
Repro steps
Please provide the steps required to reproduce the problem
-
Install latest SqlProvider nuget package with Paket 1.1.62
-
Add a new fsx file and try to connect to a database
Expected behavior
A string should be accepeted.
Actual behavior
F# string type is not getting accepted.
Known workarounds
None I know off
Related information
- SqlServer
- Win10
- Using netstandard2.0
Seems like you mix mscorlib.dll (.net framework) and netstandard.dll somehow