demetrixbio / FSharp.Data.Npgsql

F# type providers to support statically typed access to input parameters and result set of sql statement in idiomatic F# way. Data modifications via statically typed tables.
Apache License 2.0
127 stars 16 forks source link

20/03/enh/quotation optimizations2 #70

Closed melanore closed 4 years ago

kerams commented 4 years ago

Ooooh, this looks tasty.

rowmapping inferred in runtime

Wanted to tackle this too some time in the future. Great.

kerams commented 4 years ago

I'm getting this after updating:

error NU1202: Package FSharp.Data.Npgsql 0.2.0-beta is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package FSharp.Data.Npgsql 0.2.0-beta supports:
- net461 (.NETFramework,Version=v4.6.1)
- netstandard2.0 (.NETStandard,Version=v2.0)
melanore commented 4 years ago

There are some problems with cross targeting, for now I will separate switch to new template version from performance optimizations. Pushed a new version with old template. Sorry.

kerams commented 4 years ago

No worries. I have another issue now though :). Building inside VS works, but dotnet build fails with

error FS3031: The type provider 'C:\Users\_\.nuget\packages\fsharp.data.npgsql\0.2.2-beta\lib\netstandard2.0\FSharp.Data.Npgsql.dll' reported an error:
Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'FSharp.Data.Npgsql.DesignTime' which cannot be loaded or doesn't exist.
Could not load file or assembly 'C:\Users\_\.nuget\packages\fsharp.data.npgsql\0.2.2-beta\lib\netstandard2.0\FSharp.Data.Npgsql.DesignTime.dll'

Never mind, it looks like an issue with a preview version of the SDK. 3.1.100 compiles it just fine.