Skip to content

Commit a92133b

Browse files
committed
1.3.5: Experimental .NET 6.0 with Microsoft.Data.SqlClient
1 parent 6401cd2 commit a92133b

11 files changed

+73
-345
lines changed

docs/RELEASE_NOTES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.3.5 - 20.12.2022
2+
* Experimental use of Microsoft.Data.SqlClient in .net6.0 and .netstandard2.1
3+
14
### 1.3.4 - 04.12.2022
25
* Always quote schema name with backticks in MySQL PR #777
36
* Smaller runtime by removing unnecessary code

paket.dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ storage: none
44
clitool dotnet-mono 0.5.6
55

66
nuget FSharp.Core == 6.0.7
7-
nuget System.Data.SqlClient
7+
nuget System.Data.SqlClient framework: net461, net472, net480, netstandard2.0, netstandard2.1, netcoreapp2.1, netcoreapp3.1
88
nuget NETStandard.Library.NETFramework storage: packages
99
nuget System.Data.OleDb
1010
nuget System.Runtime

paket.lock

+30-327
Large diffs are not rendered by default.

src/Common/AssemblyInfo.fs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("SQLProvider")>]
66
[<assembly: AssemblyProductAttribute("SQLProvider")>]
77
[<assembly: AssemblyDescriptionAttribute("Type providers for SQL database access.")>]
8-
[<assembly: AssemblyVersionAttribute("1.3.4")>]
9-
[<assembly: AssemblyFileVersionAttribute("1.3.4")>]
8+
[<assembly: AssemblyVersionAttribute("1.3.5")>]
9+
[<assembly: AssemblyFileVersionAttribute("1.3.5")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "SQLProvider"
1414
let [<Literal>] AssemblyProduct = "SQLProvider"
1515
let [<Literal>] AssemblyDescription = "Type providers for SQL database access."
16-
let [<Literal>] AssemblyVersion = "1.3.4"
17-
let [<Literal>] AssemblyFileVersion = "1.3.4"
16+
let [<Literal>] AssemblyVersion = "1.3.5"
17+
let [<Literal>] AssemblyFileVersion = "1.3.5"

src/SQLProvider.DesignTime/SQLProvider.DesignTime.fsproj

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<Import Project="..\..\netfx.props" />
44
<PropertyGroup>
55
<OutputType>Library</OutputType>
6-
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net472;net48</TargetFrameworks>
7-
<!--TargetFrameworks>netstandard2.0;netcoreapp3.1;net48;net6.0</TargetFrameworks-->
6+
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net472;net6.0</TargetFrameworks>
87
<DefineConstants>NETSTANDARD;NO_GENERATIVE;DESIGNTIME</DefineConstants>
98
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
109
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
@@ -18,6 +17,9 @@
1817
<Optimize>true</Optimize>
1918
<Tailcalls>true</Tailcalls>
2019
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'netstandard2.1' ">
21+
<DefineConstants>$(DefineConstants);MICROSOFTSQL</DefineConstants>
22+
</PropertyGroup>
2123
<ItemGroup>
2224
<Compile Include="..\..\paket-files\sourcefiles\fsprojects\FSharp.TypeProviders.SDK\src\ProvidedTypes.fsi">
2325
<Paket>True</Paket>
@@ -125,10 +127,11 @@
125127
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
126128
<PrivateAssets>all</PrivateAssets>
127129
</PackageReference>
130+
<!--
128131
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.3">
129132
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
130133
<PrivateAssets>all</PrivateAssets>
131-
</PackageReference>
134+
</PackageReference>-->
132135
</ItemGroup>
133136
<Import Project="..\..\.paket\Paket.Restore.targets" />
134137
</Project>

src/SQLProvider.DesignTime/paket.references

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ System.IO
77
System.Console
88
System.Reflection
99
System.Reflection.TypeExtensions
10-
System.Data.SqlClient
10+
System.Data.SqlClient framework: net461, net472, net480, netstandard2.0, netstandard2.1, netcoreapp2.1, netcoreapp3.1
1111
System.Data.Common
1212
System.Data.Odbc
1313
System.Data.OleDb
14-
Microsoft.Data.SqlClient
14+
Microsoft.Data.SqlClient framework: net6.0, netstandard2.1
1515
group SourceFiles
1616
File:ProvidedTypes.fsi
1717
File:ProvidedTypes.fs

src/SQLProvider.Runtime/Providers.MsSqlServer.Ssdt.fs

+4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ namespace FSharp.Data.Sql.Providers
44
open System
55
open System.Collections.Concurrent
66
open System.Data
7+
#if MICROSOFTSQL
8+
open Microsoft.Data.SqlClient
9+
#else
710
open System.Data.SqlClient
11+
#endif
812
open System.IO
913
open System.Reflection
1014
open System.Text

src/SQLProvider.Runtime/Providers.MsSqlServer.fs

+4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ open System
44
open System.Collections.Concurrent
55
open System.Collections.Generic
66
open System.Data
7+
#if MICROSOFTSQL
8+
open Microsoft.Data.SqlClient
9+
#else
710
open System.Data.SqlClient
11+
#endif
812
open FSharp.Data.Sql
913
open FSharp.Data.Sql.Transactions
1014
open FSharp.Data.Sql.Schema

src/SQLProvider.Runtime/SQLProvider.Runtime.fsproj

+13-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Import Project="..\..\netfx.props" />
66
<PropertyGroup>
77
<OutputType>Library</OutputType>
8-
<TargetFrameworks>netstandard2.0;netstandard2.1;net472;net48</TargetFrameworks>
8+
<TargetFrameworks>netstandard2.0;netstandard2.1;net472;net6.0</TargetFrameworks>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
1111
<DefineConstants>TP_RUNTIME;NETSTANDARD;NO_GENERATIVE</DefineConstants>
@@ -35,6 +35,9 @@
3535
<Optimize>true</Optimize>
3636
<Tailcalls>true</Tailcalls>
3737
</PropertyGroup>
38+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'netstandard2.1' ">
39+
<DefineConstants>$(DefineConstants);MICROSOFTSQL</DefineConstants>
40+
</PropertyGroup>
3841
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
3942
<ItemGroup>
4043
<Compile Include="..\Common\AssemblyInfo.fs">
@@ -73,19 +76,23 @@
7376
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7477
<PrivateAssets>all</PrivateAssets>
7578
</PackageReference>
79+
<!--
7680
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net48" Version="1.0.0">
7781
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7882
<PrivateAssets>all</PrivateAssets>
79-
</PackageReference>
83+
</PackageReference>-->
8084
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
8185
</ItemGroup>
82-
<Target Name="BeforeBuild">
83-
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Restore" />
84-
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=netcoreapp3.1" />
86+
<Target Name="BeforeBuild" Condition=" '$(TargetFramework)' != 'net6.0' And '$(TargetFramework)' != 'netstandard2.1' ">
87+
<!--<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Restore" />-->
88+
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFrameworks=netcoreapp3.1" />
8589
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=netstandard2.0" />
86-
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net48" />
90+
<!--<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net48" />-->
8791
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net472" />
8892
</Target>
93+
<Target Name="BeforeBuild" Condition=" '$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'netstandard2.1' ">
94+
<MSBuild Projects="..\SQLProvider.DesignTime\SQLProvider.DesignTime.fsproj" Targets="Build" Properties="Configuration=$(Configuration);TargetFramework=net6.0" />
95+
</Target>
8996
<Target Name="AfterBuild">
9097
</Target>
9198
<ItemGroup Condition="'$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net48' ">

src/SQLProvider.Runtime/paket.references

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ System.IO
77
System.Console
88
System.Reflection
99
System.Reflection.TypeExtensions
10-
System.Data.SqlClient
10+
System.Data.SqlClient framework: net461, net472, net480, netstandard2.0, netstandard2.1, netcoreapp2.1, netcoreapp3.1
1111
System.Data.Common
1212
System.Data.Odbc
1313
System.Data.OleDb
14+
Microsoft.Data.SqlClient framework: net6.0, netstandard2.1
1415

1516
group SourceFiles
1617
File:ExpressionOptimizer.fs

src/SQLProvider.Runtime/paket.template

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ description
2525
Type providers for SQL database access.
2626
files
2727
../../bin/net472/FSharp.Data.SqlProvider.* ==> lib/net472
28+
../../bin/net6.0/FSharp.Data.SqlProvider.* ==> lib/net6.0
2829
../../bin/netstandard2.0/FSharp.Data.SQLProvider.* ==> lib/netstandard2.0
30+
../../bin/netstandard2.1/FSharp.Data.SQLProvider.* ==> lib/netstandard2.1
31+
../../bin/typeproviders/fsharp41/net6.0/*.dll ==> typeproviders/fsharp41/net6.0
2932
../../bin/typeproviders/fsharp41/netstandard2.0/*.dll ==> typeproviders/fsharp41/netstandard2.0
3033
../../bin/typeproviders/fsharp41/netcoreapp3.1/*.dll ==> typeproviders/fsharp41/netcoreapp3.1
3134
../../bin/typeproviders/fsharp41/net472/*.dll ==> typeproviders/fsharp41/net472
35+
../../bin/typeproviders/fsharp41/net6.0/*.dll ==> typeproviders/fsharp41/net6.0
3236
references
3337
FSharp.Data.SqlProvider.dll
3438
dependencies
3539
FSharp.Core >= 6.0.7
3640
Newtonsoft.Json >= 13.0.1
37-
System.Net.Http >= 4.3.4

0 commit comments

Comments
 (0)