From dd8b065107af3c1f4f5cd9c250098f3ac9b11afd Mon Sep 17 00:00:00 2001 From: Dan Mallott Date: Fri, 8 May 2026 08:15:14 -0500 Subject: [PATCH 1/2] Modernize package to NET Standard and remove dependency on System.Data.SqlClient --- .gitignore | 3 ++ .../ToDataTable.Benchmarks.csproj | 8 ++--- .../ToDataTable.TestDataGenerator.csproj | 2 +- .../ToDataTable.Tests.csproj | 21 +++++++----- ToDataTable/ToDataTable.sln | 34 ------------------- ToDataTable/ToDataTable.slnx | 6 ++++ ToDataTable/ToDataTable/ToDataTable.csproj | 12 +++---- .../ToDataTableExtensionMethods.cs | 2 +- 8 files changed, 33 insertions(+), 55 deletions(-) delete mode 100644 ToDataTable/ToDataTable.sln create mode 100644 ToDataTable/ToDataTable.slnx diff --git a/.gitignore b/.gitignore index ea37bce..04a9704 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,12 @@ ToDataTable/.vs/ ToDataTable/ToDataTable.Benchmarks/bin/ ToDataTable/ToDataTable.Benchmarks/obj/ +ToDataTable/ToDataTable.Benchmarks/BenchmarkDotNet.Artifacts ToDataTable/ToDataTable.TestDataGenerator/bin/ ToDataTable/ToDataTable.TestDataGenerator/obj/ ToDataTable/ToDataTable.Tests/bin/ ToDataTable/ToDataTable.Tests/obj/ ToDataTable/ToDataTable/bin/ ToDataTable/ToDataTable/obj/ +.idea/ + diff --git a/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj b/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj index 10b28a7..cb3d4b7 100644 --- a/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj +++ b/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj @@ -1,19 +1,19 @@ - netcoreapp2.2 + net10.0 Exe - + - - + + diff --git a/ToDataTable/ToDataTable.TestDataGenerator/ToDataTable.TestDataGenerator.csproj b/ToDataTable/ToDataTable.TestDataGenerator/ToDataTable.TestDataGenerator.csproj index 9f82679..e1ad3f5 100644 --- a/ToDataTable/ToDataTable.TestDataGenerator/ToDataTable.TestDataGenerator.csproj +++ b/ToDataTable/ToDataTable.TestDataGenerator/ToDataTable.TestDataGenerator.csproj @@ -1,7 +1,7 @@ - netcoreapp2.2 + net10.0 diff --git a/ToDataTable/ToDataTable.Tests/ToDataTable.Tests.csproj b/ToDataTable/ToDataTable.Tests/ToDataTable.Tests.csproj index b0903f3..a509aac 100644 --- a/ToDataTable/ToDataTable.Tests/ToDataTable.Tests.csproj +++ b/ToDataTable/ToDataTable.Tests/ToDataTable.Tests.csproj @@ -1,23 +1,26 @@ - netcoreapp2.2 + net10.0 false - - - - - - + + - - + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + diff --git a/ToDataTable/ToDataTable.sln b/ToDataTable/ToDataTable.sln deleted file mode 100644 index 9bddac3..0000000 --- a/ToDataTable/ToDataTable.sln +++ /dev/null @@ -1,34 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToDataTable.Tests", "ToDataTable.Tests\ToDataTable.Tests.csproj", "{1E9E257C-5A34-40BB-BE64-47404D2D8941}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToDataTable", "ToDataTable\ToDataTable.csproj", "{1A5E78EC-16B0-40BF-9848-D1B17F33B501}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToDataTable.Benchmarks", "ToDataTable.Benchmarks\ToDataTable.Benchmarks.csproj", "{3BFF1647-D02F-40D6-A8F3-6F1C7E635CC5}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToDataTable.TestDataGenerator", "ToDataTable.TestDataGenerator\ToDataTable.TestDataGenerator.csproj", "{D48109BD-CCF6-41D5-BF65-9E32C4041928}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1E9E257C-5A34-40BB-BE64-47404D2D8941}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1E9E257C-5A34-40BB-BE64-47404D2D8941}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1E9E257C-5A34-40BB-BE64-47404D2D8941}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1E9E257C-5A34-40BB-BE64-47404D2D8941}.Release|Any CPU.Build.0 = Release|Any CPU - {1A5E78EC-16B0-40BF-9848-D1B17F33B501}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1A5E78EC-16B0-40BF-9848-D1B17F33B501}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1A5E78EC-16B0-40BF-9848-D1B17F33B501}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1A5E78EC-16B0-40BF-9848-D1B17F33B501}.Release|Any CPU.Build.0 = Release|Any CPU - {3BFF1647-D02F-40D6-A8F3-6F1C7E635CC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3BFF1647-D02F-40D6-A8F3-6F1C7E635CC5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3BFF1647-D02F-40D6-A8F3-6F1C7E635CC5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3BFF1647-D02F-40D6-A8F3-6F1C7E635CC5}.Release|Any CPU.Build.0 = Release|Any CPU - {D48109BD-CCF6-41D5-BF65-9E32C4041928}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D48109BD-CCF6-41D5-BF65-9E32C4041928}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D48109BD-CCF6-41D5-BF65-9E32C4041928}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D48109BD-CCF6-41D5-BF65-9E32C4041928}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/ToDataTable/ToDataTable.slnx b/ToDataTable/ToDataTable.slnx new file mode 100644 index 0000000..5800228 --- /dev/null +++ b/ToDataTable/ToDataTable.slnx @@ -0,0 +1,6 @@ + + + + + + diff --git a/ToDataTable/ToDataTable/ToDataTable.csproj b/ToDataTable/ToDataTable/ToDataTable.csproj index 3b1a845..d7b388e 100644 --- a/ToDataTable/ToDataTable/ToDataTable.csproj +++ b/ToDataTable/ToDataTable/ToDataTable.csproj @@ -1,7 +1,7 @@ - netcoreapp2.2 + netstandard2.0 true @@ -23,15 +23,15 @@ - 0.1.2.0 + 1.0.0.0 - 0.1.2.0 + 1.0.0.0 MIT - 0.1.0 + 1.0.0 - 0.1.2 + 1.0.0 @@ -39,7 +39,7 @@ - + diff --git a/ToDataTable/ToDataTable/ToDataTableExtensionMethods.cs b/ToDataTable/ToDataTable/ToDataTableExtensionMethods.cs index 63b6abe..0599a70 100644 --- a/ToDataTable/ToDataTable/ToDataTableExtensionMethods.cs +++ b/ToDataTable/ToDataTable/ToDataTableExtensionMethods.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using System.Data; -using System.Data.SqlClient; +using Microsoft.Data.SqlClient; namespace ToDataTable { From 55210833c489e034c4e3c65404d136cb77b0c796 Mon Sep 17 00:00:00 2001 From: Dan Mallott Date: Fri, 8 May 2026 08:45:59 -0500 Subject: [PATCH 2/2] Cleanup csproj files and remove unused HyperDescriptor reference --- .../ToDataTable.Benchmarks.csproj | 1 - ToDataTable/ToDataTable/ToDataTable.csproj | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj b/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj index cb3d4b7..793165e 100644 --- a/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj +++ b/ToDataTable/ToDataTable.Benchmarks/ToDataTable.Benchmarks.csproj @@ -8,7 +8,6 @@ - diff --git a/ToDataTable/ToDataTable/ToDataTable.csproj b/ToDataTable/ToDataTable/ToDataTable.csproj index d7b388e..cfb8081 100644 --- a/ToDataTable/ToDataTable/ToDataTable.csproj +++ b/ToDataTable/ToDataTable/ToDataTable.csproj @@ -2,35 +2,20 @@ netstandard2.0 - true - true - Chris Hodges - ToDataTable is a pair of .Net Core extension methods that allow you to create a .Net DataTable (or a SQL Server Table-Valued Parameter) from a collection of objects. - - https://github.com/ChrisHodges/ToDataTable - https://github.com/ChrisHodges/ToDataTable - - Library - - 1.0.0.0 - 1.0.0.0 - MIT - 1.0.0 - 1.0.0