Last active
November 5, 2019 18:22
-
-
Save tskardal/e8a8e17503b5deb8d1ccd8e260c42a1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source https://api.nuget.org/v3/index.json | |
nuget MySql.Data 8.0.18 | |
nuget SQLProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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