Created
July 10, 2014 09:48
-
-
Save DominicFinn/a53643605c59b52e139f to your computer and use it in GitHub Desktop.
Enough to get a hold of your database in F#
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
#r "FSharp.Data.TypeProviders.dll" | |
#r "System.Data.Linq.dll" | |
open System | |
open System.Linq | |
open System.Data | |
open Microsoft.FSharp.Data.TypeProviders | |
open System.Text.RegularExpressions | |
[<Literal>] | |
let connectionString = "conn string" | |
type Sql = SqlDataConnection<connectionString> | |
let db = Sql.GetDataContext() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment