Skip to content

Commit 37a6ae5

Browse files
Merge pull request #320 from samhanes/netstandard-docs
Add documentation for Net Core
2 parents 8580a8b + 6ad47c8 commit 37a6ae5

File tree

17 files changed

+35
-249
lines changed

17 files changed

+35
-249
lines changed

SqlClient.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "content", "content", "{4B60
3232
docs\content\debugging.fsx = docs\content\debugging.fsx
3333
docs\content\faq.fsx = docs\content\faq.fsx
3434
docs\content\index.fsx = docs\content\index.fsx
35+
docs\content\netcore.md = docs\content\netcore.md
3536
docs\content\output.fsx = docs\content\output.fsx
3637
docs\content\setup.fsx = docs\content\setup.fsx
3738
docs\content\SqlClientComparison.md = docs\content\SqlClientComparison.md

docs/content/bulk load.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "System.Transactions"
44
open FSharp.Data
55
open System

docs/content/configuration and Input.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "Microsoft.SqlServer.Types.dll"
44
(**
55

docs/content/data modification.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "System.Transactions"
44
open FSharp.Data
55
open System

docs/content/debugging.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "System.Transactions"
44
open FSharp.Data
55
open System

docs/content/faq.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "System.Transactions"
44
open FSharp.Data
55

docs/content/index.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(*** hide ***)
22
#r "Microsoft.SqlServer.Types.dll"
3-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
3+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
44

55
(**
66
Not your grandfather's ORM

docs/content/netcore.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Support for .NET Core
2+
=====================
3+
4+
As of version 2.0.1, a `netstandard2.0`-targeted version of FSharp.Data.SqlClient is available.
5+
This means you should be able to reference and use the type provider from a .NET Core application,
6+
with the following caveats and exceptions:
7+
8+
* The type provider is split into two different assemblies, `FSharp.Data.SqlClient.dll`
9+
(the runtime component or RTC) and `FSharp.Data.SqlClient.DesignTime.dll` (the design-time component or DTC).
10+
* The RTC (and its dependencies) must be available at runtime; they end up in the bin folder
11+
alongside your application's compiled assemblies. The FSharp.Data.SqlClient RTC is available for
12+
both `net40` and `netstandard2.0` and is thus fully compatible with .NET Core 2.0 applications.
13+
* The DTC is required to make the provided types available to your design-time tooling and to the
14+
compiler. The FSharp.Data.SqlClient DTC *has .NET Framework-only dependencies* (`Microsoft.SqlServer.Types`
15+
and `Microsoft.SqlServer.TransactSql.ScriptDom`). As such, either .NET Framework or Mono must be
16+
installed in order to compile your .NET Core application. Additionally, you must import `fsc.props`
17+
in your .fsproj/.csproj file - please see more detailed instructions [here](https://github.com/Microsoft/visualfsharp/issues/3303).
18+
* As mentioned above, `Microsoft.SqlServer.Types` only targets .NET Framework, so you will not be able to use types such as [HierarchyId](http://technet.microsoft.com/en-us/library/bb677173.aspx) or
19+
[spatial types](http://blogs.msdn.com/b/adonet/archive/2013/12/09/microsoft-sqlserver-types-nuget-package-spatial-on-azure.aspx) from your .NET Core app.

docs/content/output.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*** hide ***)
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "Microsoft.SqlServer.Types.dll"
44
open FSharp.Data
55
[<Literal>]

docs/content/setup.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#nowarn "211"
2-
#r @"..\..\bin\FSharp.Data.SqlClient.dll"
2+
#r @"..\..\bin\net40\FSharp.Data.SqlClient.dll"
33
#r "System.Transactions"
44

55
open FSharp.Data

0 commit comments

Comments
 (0)