diff --git a/demo/AspNetCore5.0/AspNetCore5.0.csproj b/demo/AspNetCore5.0/AspNetCore5.0.csproj
index f26911c..5cd5d02 100644
--- a/demo/AspNetCore5.0/AspNetCore5.0.csproj
+++ b/demo/AspNetCore5.0/AspNetCore5.0.csproj
@@ -16,8 +16,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
diff --git a/src/TanvirArjel.EFCore.GenericRepository/TanvirArjel.EFCore.GenericRepository.csproj b/src/TanvirArjel.EFCore.GenericRepository/TanvirArjel.EFCore.GenericRepository.csproj
index 76756aa..b0952ea 100644
--- a/src/TanvirArjel.EFCore.GenericRepository/TanvirArjel.EFCore.GenericRepository.csproj
+++ b/src/TanvirArjel.EFCore.GenericRepository/TanvirArjel.EFCore.GenericRepository.csproj
@@ -1,7 +1,7 @@
- netstandard2.1;net6.0;net7.0
+ netstandard2.1;net6.0;
8.0
true
true
@@ -43,9 +43,9 @@
Git
EFCore, RepositoryLayer, GenericRepository, UnitOfWork, .NET, .NETCore, ASP.NETCore
- 1. Multiple DbConext support has been added.
+ 1. SQL connection closing isssue has been fixed.
- 6.0.0-preview1
+ 5.9.1
LICENSE
icon.png
TanvirArjel
@@ -73,9 +73,9 @@
-
+
diff --git a/src/TanvirArjel.EFCore.QueryRepository/SqlQueryExtensions.cs b/src/TanvirArjel.EFCore.QueryRepository/SqlQueryExtensions.cs
index 692f258..b83581d 100644
--- a/src/TanvirArjel.EFCore.QueryRepository/SqlQueryExtensions.cs
+++ b/src/TanvirArjel.EFCore.QueryRepository/SqlQueryExtensions.cs
@@ -4,17 +4,12 @@
using System;
using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Data;
using System.Data.Common;
using System.Globalization;
-using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Storage;
namespace TanvirArjel.EFCore.GenericRepository
{
@@ -168,111 +163,5 @@ public static async Task> GetFromQueryAsync(
await dbContext.Database.CloseConnectionAsync();
}
}
-
- private static async Task> GetFromQueryAsync2(
- this DbContext dbContext,
- string sql,
- IEnumerable