I'm attempting to implement the very first example from here and I'm getting Unable to load DLL 'sni.dll' or one of its dependencies
error. I have .NET 8/VS Code. Any thoughts?
#r "nuget: FSharp.Data.SqlClient, 2.1.2"
open FSharp.Data
[<Literal>]
let connectionString =
@"Server=localhost;Database=AdventureWorks2017;Trusted_Connection=True;"
let getProducts () =
let cmd = new SqlCommandProvider<"
SELECT TOP (1000)
[ProductID]
,[Name]
,[Color]
FROM [Production].[Product]" , connectionString>(connectionString)
cmd.Execute()
[<EntryPoint>]
let main argv =
let products = getProducts()
products |> printfn "%A"
0