-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
Describe the bug
In a netcoreapp3.1 project creating a SqlTypeProvider with provider type SQLITE yields a vague exception
To Reproduce
Steps to reproduce the behavior:
- Create a new console app project, target .net core 3.1
- Create an empty database
- Install SQLProvider and Microsoft.Data.Sqlite nuget packages
- Type the following code in Program.fs file:
open FSharp.Data.Sql
[<Literal>]
let connectionString =
"Data Source=" +
__SOURCE_DIRECTORY__ + @"\BarDb.db;" +
"Version=3;foreign keys=true"
type sql = SqlDataProvider<
Common.DatabaseProviderTypes.SQLITE,
connectionString,
SQLiteLibrary = Common.SQLiteLibrary.MicrosoftDataSqlite,
CaseSensitivityChange = Common.CaseSensitivityChange.ORIGINAL>
- Build a project
- See error
Expected behavior
Code compiles without errors
Actual behavior
An error is displayed:
Error FS3033 The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Exception has been thrown by the target of an invocation.
Desktop
- OS: Windows 10 version 1909
- .NET SDK: .net core 3.1.301
Kurren123
Metadata
Metadata
Assignees
Labels
No labels