[<Literal>]
let Conn = "Server=192.168.1.89; Port=5432; Database=test1;User Id=postgres;Password=postgres;"
type Base = SqlDataProvider<DatabaseVendor = Common.DatabaseProviderTypes.POSTGRESQL, ConnectionString = Conn, UseOptionTypes = true>
у меня вот такое(
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Could not create the connection, most likely this means that the connectionString is wrong. See error from Npgsql to troubleshoot: Could not load file or assembly 'System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
fsproj вот такой
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Npgsql" Version="5.0.1.1" />
<PackageReference Include="SQLProvider" Version="1.1.99" />
</ItemGroup>
</Project>
Vasiliy
Mark
Ilya
Doge
Vladimir
Ayrat
Danil
Igor
Shub
Ilya
Mark