You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contributions to this repository are welcome, you can engage with users and contributors [on Gitter https://gitter.im/fsprojects/FSharp.Data.SqlClient](https://gitter.im/fsprojects/FSharp.Data.SqlClient) chat room.
4
+
5
+
## Code and documentation contributions:
6
+
7
+
There is very low bar for submitting a PR for review and discussion, changes to code that will get merged will generally requires a bit of back and forth beyond simplest fixes.
8
+
9
+
### Contributing to the docs
10
+
11
+
The best way is to pull the repository and build it, then you can use those FAKE build targets (run a single target with `build.cmd TargetName -st` if you don't want to start from a clean build):
12
+
13
+
***GenerateDocs** : Will run FSharp.Formatting over the ./docs/contents folder.
14
+
***ServeDocs** : Will run IIS Express to serve the docs, and then show the home URL with your default browser.
Copy file name to clipboardExpand all lines: README.md
+39-7Lines changed: 39 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,40 @@
1
-
# SqlClient providers
1
+
# FSharp.Data.SqlClient - Type providers for Microsoft SQL Server
2
2
3
-
## SqlCommandProvider
3
+
This library exposes SQL Server Database objects in a type safe manner to F# code, by the mean of [Type Providers](https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/type-providers/)
4
4
5
-
Provides statically typed access to input parameters and result set of T-SQL command in idiomatic F# way.
5
+
You can reference it in F# Interactive that ships with Visual Studio
6
+
```fsharp
7
+
#r "nuget: FSharp.Data.SqlClient"
8
+
open FSharp.Data
9
+
open FSharp.Data.SqlClient
10
+
let [<Literal>] connectionString = "Server=.;Database=AdventureWorks2012;Trusted_Connection=True;"
11
+
type MyCommand = SqlCommandProvider<"""
12
+
select
13
+
data.a
14
+
from
15
+
(select 1 a union all select 2 union all select 3) data
Let's say we need to retrieve number of orders shipped by a certain shipping method since specific date.
58
90
@@ -76,7 +108,7 @@ output
76
108
Some (Some 1085)
77
109
```
78
110
79
-
## SqlFileProvider
111
+
###SqlFileProvider
80
112
81
113
```fsharp
82
114
type SampleCommand = SqlFile<"sampleCommand.sql">
@@ -103,4 +135,4 @@ More information can be found in the [documentation](http://fsprojects.github.io
103
135
104
136
The default maintainer account for projects under "fsprojects" is [@fsprojectsgit](https://github.com/fsprojectsgit) - F# Community Project Incubation Space (repo management)
105
137
106
-
Thanks Jetbrains for their open source license program and providing their tool.
138
+
Thanks Jetbrains for their open source license program and providing their tool.
0 commit comments