-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added dotnet8 to fluentvalidation, data.sql, efcore, and efcore.sqlserver libraries * refactored out GetUninitializedObjectHelper
- Loading branch information
1 parent
450df75
commit 901e556
Showing
25 changed files
with
150 additions
and
95 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
src/JK.Common.Data.Sql.Tests/JK.Common.Data.Sql.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/JK.Common.Data.Sql.Tests/TestUtils/GetUninitializedObjectHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
This is setup as if/else due to the following GitHub issue: | ||
"Legacy serialization infrastructure APIs marked obsolete" | ||
https://github.com/dotnet/docs/issues/34893 | ||
*/ | ||
|
||
namespace JK.Common.Data.Sql.Tests.TestUtils; | ||
|
||
#if NET6_0_OR_GREATER | ||
|
||
internal static class GetUninitializedObjectHelper | ||
{ | ||
internal static T Instantiate<T>() where T : class | ||
=> System.Runtime.CompilerServices.RuntimeHelpers.GetUninitializedObject(typeof(T)) as T; | ||
} | ||
|
||
#else | ||
|
||
internal static class GetUninitializedObjectHelper | ||
{ | ||
internal static T Instantiate<T>() where T : class | ||
=> System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(T)) as T; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<LangVersion>11.0</LangVersion> | ||
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks> | ||
<Authors>Jeremy Knight</Authors> | ||
<Version>5.1.0</Version> | ||
<Copyright>Copyright Jeremy Knight. All rights reserved.</Copyright> | ||
<Description>A utility library containing extensions to System.Data.SqlClient</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageProjectUrl>https://github.com/jeremyknight-me/JK.Common</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/jeremyknight-me/JK.Common</RepositoryUrl> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<LangVersion>12.0</LangVersion> | ||
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<Authors>Jeremy Knight</Authors> | ||
<Version>5.2.0</Version> | ||
<Copyright>Copyright Jeremy Knight. All rights reserved.</Copyright> | ||
<Description>A utility library containing extensions to System.Data.SqlClient</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageProjectUrl>https://github.com/jeremyknight-me/JK.Common</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/jeremyknight-me/JK.Common</RepositoryUrl> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JK.Common.Abstractions" Version="1.0.0" /> | ||
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="JK.Common.Abstractions" Version="1.1.0" /> | ||
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.4" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/JK.Common.EntityFrameworkCore.SqlServer/Extensions/PropertyBuilderDateExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/JK.Common.EntityFrameworkCore.SqlServer/Extensions/PropertyBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
global using Microsoft.EntityFrameworkCore; | ||
global using System; | ||
global using System; | ||
global using System.ComponentModel.DataAnnotations; | ||
global using Microsoft.EntityFrameworkCore; | ||
global using Xunit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
src/JK.Common.EntityFrameworkCore/JK.Common.EntityFrameworkCore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
src/JK.Common.FluentValidation.Tests/JK.Common.FluentValidation.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.