From 68ff04d5d8caf40c3ee887fb694383af375de7f9 Mon Sep 17 00:00:00 2001 From: Blaise Taylor Date: Sat, 19 Aug 2023 08:29:36 -0400 Subject: [PATCH] Removing references to net5.0. (#188) --- .../Constants.cs | 4 ---- .../FilterHelper.cs | 8 ------- DAL.EFCore/DAL.EFCore.csproj | 14 +++++------- MigrationTool/MigrationTool.csproj | 22 +++++++++---------- .../20200918094359_initial.Designer.cs | 2 +- .../Migrations/20200918094359_initial.cs | 2 +- SeedDatabase/SeedDatabase.csproj | 18 +++++++-------- 7 files changed, 27 insertions(+), 43 deletions(-) diff --git a/AutoMapper.AspNetCore.OData.EFCore/Constants.cs b/AutoMapper.AspNetCore.OData.EFCore/Constants.cs index bd2d3cd..dfd3930 100644 --- a/AutoMapper.AspNetCore.OData.EFCore/Constants.cs +++ b/AutoMapper.AspNetCore.OData.EFCore/Constants.cs @@ -13,9 +13,7 @@ internal static class Constants typeof(DateTimeOffset), typeof(DateTime), typeof(Date), -#if NET6_0 || NET7_0 typeof(DateOnly) -#endif }; public static HashSet DateTimeRelatedTypes = new() @@ -24,10 +22,8 @@ internal static class Constants typeof(DateTime), typeof(TimeSpan), typeof(TimeOfDay), -#if NET6_0 || NET7_0 typeof(TimeOnly), typeof(DateOnly), -#endif typeof(Date) }; diff --git a/AutoMapper.AspNetCore.OData.EFCore/FilterHelper.cs b/AutoMapper.AspNetCore.OData.EFCore/FilterHelper.cs index 735089b..0be9bef 100644 --- a/AutoMapper.AspNetCore.OData.EFCore/FilterHelper.cs +++ b/AutoMapper.AspNetCore.OData.EFCore/FilterHelper.cs @@ -715,16 +715,12 @@ private bool ShouldConvertToNumericDate(BinaryOperatorNode binaryOperatorNode) static bool ShouldConvert(Type leftType, Type rightType) => BothTypesDateRelated(leftType, rightType) -#if NET6_0 || NET7_0 && ( leftType == typeof(Date) || rightType == typeof(Date) || leftType == typeof(DateOnly) || rightType == typeof(DateOnly) ); -#else - && (leftType == typeof(Date) || rightType == typeof(Date)); -#endif } private bool ShouldConvertToNumericTime(BinaryOperatorNode binaryOperatorNode) @@ -740,16 +736,12 @@ private bool ShouldConvertToNumericTime(BinaryOperatorNode binaryOperatorNode) static bool ShouldConvert(Type leftType, Type rightType) => BothTypesDateTimeRelated(leftType, rightType) -#if NET6_0 || NET7_0 && ( leftType == typeof(TimeOfDay) || rightType == typeof(TimeOfDay) || leftType == typeof(TimeOnly) || rightType == typeof(TimeOnly) ); -#else - && (leftType == typeof(TimeOfDay) || rightType == typeof(TimeOfDay)); -#endif } public IExpressionPart GetConstantOperandFilterPart(ConstantNode constantNode) diff --git a/DAL.EFCore/DAL.EFCore.csproj b/DAL.EFCore/DAL.EFCore.csproj index 9ce77f5..ecb021d 100644 --- a/DAL.EFCore/DAL.EFCore.csproj +++ b/DAL.EFCore/DAL.EFCore.csproj @@ -1,19 +1,15 @@  - netcoreapp3.1;net5.0;net6.0 + net6.0;net7.0 - - - - - - - - + + + + diff --git a/MigrationTool/MigrationTool.csproj b/MigrationTool/MigrationTool.csproj index 2873ead..1356f0e 100644 --- a/MigrationTool/MigrationTool.csproj +++ b/MigrationTool/MigrationTool.csproj @@ -1,17 +1,17 @@ - - Exe - netcoreapp3.1 - + + Exe + net7.0 + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/MigrationTool/Migrations/20200918094359_initial.Designer.cs b/MigrationTool/Migrations/20200918094359_initial.Designer.cs index ad53406..a2a3f19 100644 --- a/MigrationTool/Migrations/20200918094359_initial.Designer.cs +++ b/MigrationTool/Migrations/20200918094359_initial.Designer.cs @@ -11,7 +11,7 @@ namespace MigrationTool.Migrations { [DbContext(typeof(MigrationContext))] [Migration("20200918094359_initial")] - partial class initial + partial class Initial { protected override void BuildTargetModel(ModelBuilder modelBuilder) { diff --git a/MigrationTool/Migrations/20200918094359_initial.cs b/MigrationTool/Migrations/20200918094359_initial.cs index 751d1f7..2f325f8 100644 --- a/MigrationTool/Migrations/20200918094359_initial.cs +++ b/MigrationTool/Migrations/20200918094359_initial.cs @@ -3,7 +3,7 @@ namespace MigrationTool.Migrations { - public partial class initial : Migration + public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { diff --git a/SeedDatabase/SeedDatabase.csproj b/SeedDatabase/SeedDatabase.csproj index 0ba31e7..7f601d5 100644 --- a/SeedDatabase/SeedDatabase.csproj +++ b/SeedDatabase/SeedDatabase.csproj @@ -1,15 +1,15 @@ - - Exe - netcoreapp3.1 - + + Exe + net7.0 + - - - - - + + + + +