From 88ff4fd914c120912eaf3c6cdf2cab596db14f50 Mon Sep 17 00:00:00 2001 From: AlexanderPro Date: Thu, 2 Feb 2023 17:55:27 +0300 Subject: [PATCH] Fix .NET 7.0 --- .../Properties/AssemblyInfo.cs | 4 ++-- .../EntityFrameworkCore.MemoryJoin.Ef6.csproj | 8 ++++---- ...FrameworkCore.MemoryJoin.IntegrationTests.csproj | 9 ++++++++- ...tyFrameworkCore.MemoryJoin.TestRunnerCore.csproj | 9 ++++++++- .../EntityFrameworkCore.MemoryJoin.csproj | 13 +++++++++---- src/EntityFrameworkCore.MemoryJoin/MemoryJoiner.cs | 2 +- 6 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/EntityFramework.MemoryJoin/Properties/AssemblyInfo.cs b/src/EntityFramework.MemoryJoin/Properties/AssemblyInfo.cs index 6db30ff..2e6548c 100644 --- a/src/EntityFramework.MemoryJoin/Properties/AssemblyInfo.cs +++ b/src/EntityFramework.MemoryJoin/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.7.7.0")] -[assembly: AssemblyFileVersion("0.7.7.0")] +[assembly: AssemblyVersion("0.7.8.0")] +[assembly: AssemblyFileVersion("0.7.8.0")] diff --git a/src/EntityFrameworkCore.MemoryJoin.Ef6/EntityFrameworkCore.MemoryJoin.Ef6.csproj b/src/EntityFrameworkCore.MemoryJoin.Ef6/EntityFrameworkCore.MemoryJoin.Ef6.csproj index 552ffcc..22ce862 100644 --- a/src/EntityFrameworkCore.MemoryJoin.Ef6/EntityFrameworkCore.MemoryJoin.Ef6.csproj +++ b/src/EntityFrameworkCore.MemoryJoin.Ef6/EntityFrameworkCore.MemoryJoin.Ef6.csproj @@ -1,16 +1,16 @@  - netstandard2.1 Copyright © Anton Shkuratov 2018 Anton Shkuratov EntityFramework.MemoryJoin - 0.7.7 - 0.7.7.0 - 0.7.7.0 + 0.7.8 + 0.7.8.0 + 0.7.8.0 false EntityFrameworkCore.MemoryJoin + net7.0;netstandard2.1 diff --git a/src/EntityFrameworkCore.MemoryJoin.IntegrationTests/EntityFrameworkCore.MemoryJoin.IntegrationTests.csproj b/src/EntityFrameworkCore.MemoryJoin.IntegrationTests/EntityFrameworkCore.MemoryJoin.IntegrationTests.csproj index 7ee80a3..eed56b3 100644 --- a/src/EntityFrameworkCore.MemoryJoin.IntegrationTests/EntityFrameworkCore.MemoryJoin.IntegrationTests.csproj +++ b/src/EntityFrameworkCore.MemoryJoin.IntegrationTests/EntityFrameworkCore.MemoryJoin.IntegrationTests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1;net6.0 + net6.0;net7.0;netcoreapp3.1 false @@ -11,12 +11,19 @@ + + + + + + + diff --git a/src/EntityFrameworkCore.MemoryJoin.TestRunnerCore/EntityFrameworkCore.MemoryJoin.TestRunnerCore.csproj b/src/EntityFrameworkCore.MemoryJoin.TestRunnerCore/EntityFrameworkCore.MemoryJoin.TestRunnerCore.csproj index f16be32..55b1b12 100644 --- a/src/EntityFrameworkCore.MemoryJoin.TestRunnerCore/EntityFrameworkCore.MemoryJoin.TestRunnerCore.csproj +++ b/src/EntityFrameworkCore.MemoryJoin.TestRunnerCore/EntityFrameworkCore.MemoryJoin.TestRunnerCore.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.0;net6.0 + net6.0;net7.0;netcoreapp3.0 @@ -18,12 +18,19 @@ + + + + + + + diff --git a/src/EntityFrameworkCore.MemoryJoin/EntityFrameworkCore.MemoryJoin.csproj b/src/EntityFrameworkCore.MemoryJoin/EntityFrameworkCore.MemoryJoin.csproj index 84417ef..c16ebb9 100644 --- a/src/EntityFrameworkCore.MemoryJoin/EntityFrameworkCore.MemoryJoin.csproj +++ b/src/EntityFrameworkCore.MemoryJoin/EntityFrameworkCore.MemoryJoin.csproj @@ -1,14 +1,14 @@  - netstandard2.1;net6.0 + net6.0;net7.0;netstandard2.1 Copyright © Anton Shkuratov 2018 Anton Shkuratov EntityFramework.MemoryJoin - 0.8.0 - 0.8.0.0 - 0.8.0.0 + 0.9.0 + 0.9.0.0 + 0.9.0.0 false @@ -32,9 +32,14 @@ + + + + + diff --git a/src/EntityFrameworkCore.MemoryJoin/MemoryJoiner.cs b/src/EntityFrameworkCore.MemoryJoin/MemoryJoiner.cs index 19a60d0..1386706 100644 --- a/src/EntityFrameworkCore.MemoryJoin/MemoryJoiner.cs +++ b/src/EntityFrameworkCore.MemoryJoin/MemoryJoiner.cs @@ -162,7 +162,7 @@ public static IQueryable FromLocalList(this DbContext context, IList da var set = setMethod.MakeGenericMethod(queryClass) .Invoke(context, new object[] { }); - if (fromSqlMethod != null) + if (fromSqlMethod != null && rawSqlStringType != null) { // .Net Core < 5 case var rawSqlString = Activator.CreateInstance(rawSqlStringType, new object[] { sb.ToString() });