From e58b42d35d9b9f5ab072cd60e1c7fef67da217f0 Mon Sep 17 00:00:00 2001 From: Edgar Mesquita Date: Tue, 21 Jul 2026 17:26:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat!:=20migrate=20to=20eQuantic.Co?= =?UTF-8?q?re.Data=20v5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Brings core-api onto the current data stack: eQuantic.Core.Data 4.3.2 -> 5.5.0, the EntityFramework providers to their v5 lane (net8 8.2.0/8.3.0, net10 10.1.0/10.2.0), and the eQuantic.Linq family (Web + Swashbuckle) to 3.7.1. The v5 repository contracts drop the TUnitOfWork generic parameter — the engine is out of the generics — so IAsyncQueryableRepository and GetAsyncQueryableRepository() take two type arguments instead of three. core-api's own code was already v5-shaped (EntityDataBase implements IEntity); only the sample service consumed the old three-argument form. Build clean across net8/net10; the full suite (Domain, Persistence, Relational, PostgreSql, Api) is green on both frameworks. BREAKING CHANGE: repository resolution now uses the two-argument v5 contracts (IAsyncQueryableRepository); consumers on the three-argument v4 form must drop the TUnitOfWork type argument. --- .gitignore | 4 +++- samples/eQuantic.Core.Api.Sample/Services/ExampleService.cs | 4 ++-- .../eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj | 2 +- src/eQuantic.Core.Api/eQuantic.Core.Api.csproj | 2 +- src/eQuantic.Core.DataModel/eQuantic.Core.DataModel.csproj | 2 +- src/eQuantic.Core.Domain/eQuantic.Core.Domain.csproj | 2 +- .../eQuantic.Core.Persistence.MongoDb.csproj | 4 ++-- .../eQuantic.Core.Persistence.MySql.csproj | 4 ++-- .../eQuantic.Core.Persistence.PostgreSql.csproj | 4 ++-- .../eQuantic.Core.Persistence.SqlServer.csproj | 4 ++-- .../eQuantic.Core.Persistence.csproj | 4 ++-- 11 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index ea9dc75..692fa2a 100644 --- a/.gitignore +++ b/.gitignore @@ -361,4 +361,6 @@ healthchecksdb !artifacts/readme.txt !build/*.targets -!build/*.props \ No newline at end of file +!build/*.props + +.DS_Store \ No newline at end of file diff --git a/samples/eQuantic.Core.Api.Sample/Services/ExampleService.cs b/samples/eQuantic.Core.Api.Sample/Services/ExampleService.cs index 1ce5035..841057a 100644 --- a/samples/eQuantic.Core.Api.Sample/Services/ExampleService.cs +++ b/samples/eQuantic.Core.Api.Sample/Services/ExampleService.cs @@ -17,7 +17,7 @@ public class ExampleService : IExampleService { private readonly IMapperFactory _mapperFactory; private readonly ILogger _logger; - private readonly IAsyncQueryableRepository _repository; + private readonly IAsyncQueryableRepository _repository; public ExampleService( IApplicationContext applicationContext, @@ -27,7 +27,7 @@ public ExampleService( { _mapperFactory = mapperFactory; _logger = logger; - _repository = unitOfWork.GetAsyncQueryableRepository(); + _repository = unitOfWork.GetAsyncQueryableRepository(); } public async Task GetByIdAsync(int exampleId, CancellationToken cancellationToken = default) diff --git a/samples/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj b/samples/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj index 81c509a..8f61270 100644 --- a/samples/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj +++ b/samples/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj b/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj index 6773d1d..7a3a7d5 100644 --- a/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj +++ b/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/eQuantic.Core.DataModel/eQuantic.Core.DataModel.csproj b/src/eQuantic.Core.DataModel/eQuantic.Core.DataModel.csproj index b29f7f8..f215c9b 100644 --- a/src/eQuantic.Core.DataModel/eQuantic.Core.DataModel.csproj +++ b/src/eQuantic.Core.DataModel/eQuantic.Core.DataModel.csproj @@ -20,7 +20,7 @@ - + diff --git a/src/eQuantic.Core.Domain/eQuantic.Core.Domain.csproj b/src/eQuantic.Core.Domain/eQuantic.Core.Domain.csproj index cac6be8..1b43817 100644 --- a/src/eQuantic.Core.Domain/eQuantic.Core.Domain.csproj +++ b/src/eQuantic.Core.Domain/eQuantic.Core.Domain.csproj @@ -21,7 +21,7 @@ - + diff --git a/src/eQuantic.Core.Persistence.MongoDb/eQuantic.Core.Persistence.MongoDb.csproj b/src/eQuantic.Core.Persistence.MongoDb/eQuantic.Core.Persistence.MongoDb.csproj index f1be85f..2f99455 100644 --- a/src/eQuantic.Core.Persistence.MongoDb/eQuantic.Core.Persistence.MongoDb.csproj +++ b/src/eQuantic.Core.Persistence.MongoDb/eQuantic.Core.Persistence.MongoDb.csproj @@ -24,10 +24,10 @@ - + - + diff --git a/src/eQuantic.Core.Persistence.MySql/eQuantic.Core.Persistence.MySql.csproj b/src/eQuantic.Core.Persistence.MySql/eQuantic.Core.Persistence.MySql.csproj index 7afc189..81e5bc8 100644 --- a/src/eQuantic.Core.Persistence.MySql/eQuantic.Core.Persistence.MySql.csproj +++ b/src/eQuantic.Core.Persistence.MySql/eQuantic.Core.Persistence.MySql.csproj @@ -24,9 +24,9 @@ - + - + diff --git a/src/eQuantic.Core.Persistence.PostgreSql/eQuantic.Core.Persistence.PostgreSql.csproj b/src/eQuantic.Core.Persistence.PostgreSql/eQuantic.Core.Persistence.PostgreSql.csproj index 03b3d5c..9e5302f 100644 --- a/src/eQuantic.Core.Persistence.PostgreSql/eQuantic.Core.Persistence.PostgreSql.csproj +++ b/src/eQuantic.Core.Persistence.PostgreSql/eQuantic.Core.Persistence.PostgreSql.csproj @@ -24,9 +24,9 @@ - + - + diff --git a/src/eQuantic.Core.Persistence.SqlServer/eQuantic.Core.Persistence.SqlServer.csproj b/src/eQuantic.Core.Persistence.SqlServer/eQuantic.Core.Persistence.SqlServer.csproj index 49ba228..b3ca320 100644 --- a/src/eQuantic.Core.Persistence.SqlServer/eQuantic.Core.Persistence.SqlServer.csproj +++ b/src/eQuantic.Core.Persistence.SqlServer/eQuantic.Core.Persistence.SqlServer.csproj @@ -24,9 +24,9 @@ - + - + diff --git a/src/eQuantic.Core.Persistence/eQuantic.Core.Persistence.csproj b/src/eQuantic.Core.Persistence/eQuantic.Core.Persistence.csproj index 314213a..3736a48 100644 --- a/src/eQuantic.Core.Persistence/eQuantic.Core.Persistence.csproj +++ b/src/eQuantic.Core.Persistence/eQuantic.Core.Persistence.csproj @@ -29,10 +29,10 @@ - + - +