Skip to content

Instantly share code, notes, and snippets.

@tskardal
Last active November 5, 2019 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tskardal/e8a8e17503b5deb8d1ccd8e260c42a1a to your computer and use it in GitHub Desktop.
Save tskardal/e8a8e17503b5deb8d1ccd8e260c42a1a to your computer and use it in GitHub Desktop.
Program.fs(11,16): error FS3033: The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Unable to load one or more of the requested types.Could not load file or assembly 'Google.Protobuf, Version=3.6.1.0,
source https://api.nuget.org/v3/index.json
nuget MySql.Data 8.0.18
nuget SQLProvider
open System
module Data =
open FSharp.Data.Sql
[<Literal>]
let connString = "Server=localhost;Database=hello;User=root;Password=pwd"
type Sql = SqlDataProvider<
Common.DatabaseProviderTypes.MYSQL,
connString>
// let ctx = Sql.GetDataContext()
// let customers =
// ctx.Main.Customers
// |> Seq.map(fun c -> c.ContactName)
// |> Seq.toList
[<EntryPoint>]
let main argv =
printfn "Hello World from F#!"
0 // return an integer exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment