Skip to content

Commit 0d91a97

Browse files
remove legacy namespace compatibility, adjust release notes
1 parent e59f443 commit 0d91a97

13 files changed

Lines changed: 34 additions & 53 deletions

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### 2.9.99-alpha April 30, 2024
2+
3+
* Issue #482 Support for Microsoft.Data.SqlClient in FSharp.Data.MicrosoftSqlClient package
4+
* Contributor: Daniel Little (https://github.com/daniellittledev), Gauthier Segay (https://github.com/smoothdeveloper)
5+
16
#### 2.1.3 April 30, 2024
27

38
* Issue #440 Toolchain and SDK adjustments, deprecated runtime support for net40

src/SqlClient.DesignTime/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ open System.Runtime.CompilerServices
66
[<assembly: AssemblyTitleAttribute("SqlClient.DesignTime")>]
77
[<assembly: AssemblyProductAttribute("FSharp.Data.SqlClient.DesignTime")>]
88
[<assembly: AssemblyDescriptionAttribute("SqlClient F# type providers")>]
9-
[<assembly: AssemblyVersionAttribute("2.1.3")>]
10-
[<assembly: AssemblyFileVersionAttribute("2.1.3")>]
9+
[<assembly: AssemblyVersionAttribute("2.9.99")>]
10+
[<assembly: AssemblyFileVersionAttribute("2.9.99")>]
1111
[<assembly: InternalsVisibleToAttribute("SqlClient.Tests")>]
1212
do ()
1313

1414
module internal AssemblyVersionInformation =
1515
let [<Literal>] AssemblyTitle = "SqlClient.DesignTime"
1616
let [<Literal>] AssemblyProduct = "FSharp.Data.SqlClient.DesignTime"
1717
let [<Literal>] AssemblyDescription = "SqlClient F# type providers"
18-
let [<Literal>] AssemblyVersion = "2.1.3"
19-
let [<Literal>] AssemblyFileVersion = "2.1.3"
18+
let [<Literal>] AssemblyVersion = "2.9.99"
19+
let [<Literal>] AssemblyFileVersion = "2.9.99"
2020
let [<Literal>] InternalsVisibleTo = "SqlClient.Tests"

src/SqlClient.DesignTime/MicrosoftAssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ open System.Runtime.CompilerServices
66
[<assembly: AssemblyTitleAttribute("MicrosoftSqlClient.DesignTime")>]
77
[<assembly: AssemblyProductAttribute("FSharp.Data.MicrosoftSqlClient.DesignTime")>]
88
[<assembly: AssemblyDescriptionAttribute("SqlClient F# type providers")>]
9-
[<assembly: AssemblyVersionAttribute("2.1.3")>]
10-
[<assembly: AssemblyFileVersionAttribute("2.1.3")>]
9+
[<assembly: AssemblyVersionAttribute("2.9.99")>]
10+
[<assembly: AssemblyFileVersionAttribute("2.9.99")>]
1111
[<assembly: InternalsVisibleToAttribute("MicrosoftSqlClient.Tests")>]
1212
do ()
1313

1414
module internal AssemblyVersionInformation =
1515
let [<Literal>] AssemblyTitle = "MicrosoftSqlClient.DesignTime"
1616
let [<Literal>] AssemblyProduct = "FSharp.Data.MicrosoftSqlClient.DesignTime"
1717
let [<Literal>] AssemblyDescription = "SqlClient F# type providers"
18-
let [<Literal>] AssemblyVersion = "2.1.3"
19-
let [<Literal>] AssemblyFileVersion = "2.1.3"
18+
let [<Literal>] AssemblyVersion = "2.9.99"
19+
let [<Literal>] AssemblyFileVersion = "2.9.99"
2020
let [<Literal>] InternalsVisibleTo = "MicrosoftSqlClient.Tests"

src/SqlClient.DesignTime/MicrosoftSqlClient.DesignTime.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
2222
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
2323
<DefineConstants>$(DefineConstants);MICROSOFT_DATA_SQLCLIENT</DefineConstants>
24-
<DefineConstants>$(DefineConstants);DESIGNTIME_CODE_ONLY;IS_DESIGNTIME;WITH_LEGACY_NAMESPACE</DefineConstants>
24+
<DefineConstants>$(DefineConstants);DESIGNTIME_CODE_ONLY;IS_DESIGNTIME</DefineConstants>
25+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
2526
</PropertyGroup>
2627
<ItemGroup>
2728
<!--

src/SqlClient.DesignTime/SqlClient.DesignTime.fsproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
2222
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
2323
<DefineConstants>$(DefineConstants);SYSTEM_DATA_SQLCLIENT</DefineConstants>
24-
<DefineConstants>$(DefineConstants);DESIGNTIME_CODE_ONLY;IS_DESIGNTIME;WITH_LEGACY_NAMESPACE</DefineConstants>
24+
<DefineConstants>$(DefineConstants);DESIGNTIME_CODE_ONLY;IS_DESIGNTIME</DefineConstants>
25+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
2526
</PropertyGroup>
2627
<ItemGroup>
2728
<!--

src/SqlClient/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ open System.Runtime.CompilerServices
66
[<assembly: AssemblyTitleAttribute("SqlClient")>]
77
[<assembly: AssemblyProductAttribute("FSharp.Data.SqlClient")>]
88
[<assembly: AssemblyDescriptionAttribute("SqlClient F# type providers")>]
9-
[<assembly: AssemblyVersionAttribute("2.1.3")>]
10-
[<assembly: AssemblyFileVersionAttribute("2.1.3")>]
9+
[<assembly: AssemblyVersionAttribute("2.9.99")>]
10+
[<assembly: AssemblyFileVersionAttribute("2.9.99")>]
1111
[<assembly: InternalsVisibleToAttribute("SqlClient.Tests")>]
1212
do ()
1313

1414
module internal AssemblyVersionInformation =
1515
let [<Literal>] AssemblyTitle = "SqlClient"
1616
let [<Literal>] AssemblyProduct = "FSharp.Data.SqlClient"
1717
let [<Literal>] AssemblyDescription = "SqlClient F# type providers"
18-
let [<Literal>] AssemblyVersion = "2.1.3"
19-
let [<Literal>] AssemblyFileVersion = "2.1.3"
18+
let [<Literal>] AssemblyVersion = "2.9.99"
19+
let [<Literal>] AssemblyFileVersion = "2.9.99"
2020
let [<Literal>] InternalsVisibleTo = "SqlClient.Tests"

src/SqlClient/MicrosoftAssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ open System.Runtime.CompilerServices
66
[<assembly: AssemblyTitleAttribute("MicrosoftSqlClient")>]
77
[<assembly: AssemblyProductAttribute("FSharp.Data.MicrosoftSqlClient")>]
88
[<assembly: AssemblyDescriptionAttribute("SqlClient F# type providers")>]
9-
[<assembly: AssemblyVersionAttribute("2.1.3")>]
10-
[<assembly: AssemblyFileVersionAttribute("2.1.3")>]
9+
[<assembly: AssemblyVersionAttribute("2.9.99")>]
10+
[<assembly: AssemblyFileVersionAttribute("2.9.99")>]
1111
[<assembly: InternalsVisibleToAttribute("MicrosoftSqlClient.Tests")>]
1212
do ()
1313

1414
module internal AssemblyVersionInformation =
1515
let [<Literal>] AssemblyTitle = "MicrosoftSqlClient"
1616
let [<Literal>] AssemblyProduct = "FSharp.Data.MicrosoftSqlClient"
1717
let [<Literal>] AssemblyDescription = "SqlClient F# type providers"
18-
let [<Literal>] AssemblyVersion = "2.1.3"
19-
let [<Literal>] AssemblyFileVersion = "2.1.3"
18+
let [<Literal>] AssemblyVersion = "2.9.99"
19+
let [<Literal>] AssemblyFileVersion = "2.9.99"
2020
let [<Literal>] InternalsVisibleTo = "MicrosoftSqlClient.Tests"

src/SqlClient/MicrosoftSqlClient.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
<NoWarn>101;44</NoWarn>
1010
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
1111
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
12-
<WithLegacyNamespaces>true</WithLegacyNamespaces>
1312
<DefineConstants>$(DefineConstants);MICROSOFT_DATA_SQLCLIENT</DefineConstants>
14-
<DefineConstants Condition="'$(WithLegacyNamespaces)'=='true'">$(DefineConstants);WITH_LEGACY_NAMESPACE</DefineConstants>
13+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1514
</PropertyGroup>
1615
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1716
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

src/SqlClient/Shared.fs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -269,26 +269,3 @@ module RuntimeInternals =
269269
[<AutoOpen>]
270270
module Shared =
271271
let DbNull = box DBNull.Value
272-
273-
274-
#if WITH_LEGACY_NAMESPACE
275-
namespace FSharp.Data
276-
open System
277-
[<Obsolete("use open 'FSharp.Data.SqlClient' namespace instead")>]
278-
type ResultType = FSharp.Data.SqlClient.ResultType
279-
[<Obsolete("use open 'FSharp.Data.SqlClient' namespace instead")>]
280-
type SqlEnumKind = FSharp.Data.SqlClient.SqlEnumKind
281-
[<Obsolete("use open 'FSharp.Data.SqlClient.Internals' namespace instead");AutoOpen>]
282-
module Obsolete =
283-
284-
//module Encoding = FSharp.Data.SqlClient.Internals.Encoding
285-
//module RuntimeInternals = FSharp.Data.SqlClient.Internals.RuntimeInternals
286-
//module Shared = FSharp.Data.SqlClient.Internals.Shared
287-
288-
type ResultRank = FSharp.Data.SqlClient.Internals.ResultRank
289-
type Mapper = FSharp.Data.SqlClient.Internals.Mapper
290-
type Column = FSharp.Data.SqlClient.Internals.Column
291-
type TypeInfo = FSharp.Data.SqlClient.Internals.TypeInfo
292-
type Parameter = FSharp.Data.SqlClient.Internals.Parameter
293-
type TempTableLoader = FSharp.Data.SqlClient.Internals.TempTableLoader
294-
#endif

src/SqlClient/SqlClient.fsproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
<NoWarn>101</NoWarn>
1010
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
1111
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
12-
<WithLegacyNamespaces>true</WithLegacyNamespaces>
1312
<DefineConstants>$(DefineConstants);SYSTEM_DATA_SQLCLIENT</DefineConstants>
14-
<DefineConstants Condition="'$(WithLegacyNamespaces)'=='true'">$(DefineConstants);WITH_LEGACY_NAMESPACE</DefineConstants>
13+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1514
</PropertyGroup>
1615
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1716
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

0 commit comments

Comments
 (0)