diff --git a/src/Api.Crud.Client/Api.Crud.Client.csproj b/src/Api.Crud.Client/Api.Crud.Client.csproj index 251ab09..b0dfbc1 100644 --- a/src/Api.Crud.Client/Api.Crud.Client.csproj +++ b/src/Api.Crud.Client/Api.Crud.Client.csproj @@ -7,9 +7,9 @@ eQuantic.Core.Api.Crud.Client eQuantic.Core.Api.Crud.Client eQuantic.Core.Api.Crud.Client - 1.7.9.0 - 1.7.9.0 - 1.7.9.0 + 1.7.10.0 + 1.7.10.0 + 1.7.10.0 net7.0;net8.0 eQuantic.Core.Api.Crud.Client diff --git a/src/Api.Crud/Api.Crud.csproj b/src/Api.Crud/Api.Crud.csproj index bd6c728..875a223 100644 --- a/src/Api.Crud/Api.Crud.csproj +++ b/src/Api.Crud/Api.Crud.csproj @@ -7,9 +7,9 @@ eQuantic.Core.Api.Crud eQuantic.Core.Api.Crud eQuantic.Core.Api.Crud - 1.7.9.0 - 1.7.9.0 - 1.7.9.0 + 1.7.10.0 + 1.7.10.0 + 1.7.10.0 net7.0;net8.0 eQuantic.Core.Api.Crud diff --git a/src/Application.Crud/Application.Crud.csproj b/src/Application.Crud/Application.Crud.csproj index a68e586..851392b 100644 --- a/src/Application.Crud/Application.Crud.csproj +++ b/src/Application.Crud/Application.Crud.csproj @@ -7,9 +7,9 @@ eQuantic.Core.Application.Crud eQuantic.Core.Application.Crud eQuantic.Core.Application.Crud - 1.7.9.0 - 1.7.9.0 - 1.7.9.0 + 1.7.10.0 + 1.7.10.0 + 1.7.10.0 netstandard2.1;net7.0;net8.0 eQuantic.Core.Application.Crud diff --git a/src/Application.Crud/Services/CrudServiceBase.cs b/src/Application.Crud/Services/CrudServiceBase.cs index 53a86c1..64ce947 100644 --- a/src/Application.Crud/Services/CrudServiceBase.cs +++ b/src/Application.Crud/Services/CrudServiceBase.cs @@ -59,7 +59,7 @@ public virtual async Task CreateAsync(CreateRequest request, Can await Repository.AddAsync(item); await Repository.UnitOfWork.CommitAsync(cancellationToken); - await OnAfterCreateAsync(item, cancellationToken); + await OnAfterCreateAsync(request, item, cancellationToken); return item.GetKey(); } @@ -93,7 +93,7 @@ public virtual async Task UpdateAsync(UpdateRequest reques await Repository.ModifyAsync(item); await Repository.UnitOfWork.CommitAsync(cancellationToken); - await OnAfterUpdateAsync(item, cancellationToken); + await OnAfterUpdateAsync(request, item, cancellationToken); return true; } @@ -163,7 +163,7 @@ protected virtual Task OnBeforeCreateAsync(CreateRequest request, TDat return Task.CompletedTask; } - protected virtual Task OnAfterCreateAsync(TDataEntity? dataEntity, CancellationToken cancellationToken = default) + protected virtual Task OnAfterCreateAsync(CreateRequest request, TDataEntity? dataEntity, CancellationToken cancellationToken = default) { return Task.CompletedTask; } @@ -173,7 +173,7 @@ protected virtual Task OnBeforeUpdateAsync(UpdateRequest request return Task.CompletedTask; } - protected virtual Task OnAfterUpdateAsync(TDataEntity? dataEntity, CancellationToken cancellationToken = default) + protected virtual Task OnAfterUpdateAsync(UpdateRequest request, TDataEntity? dataEntity, CancellationToken cancellationToken = default) { return Task.CompletedTask; } diff --git a/src/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj b/src/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj index aedde4c..384d215 100644 --- a/src/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj +++ b/src/eQuantic.Core.Api.Sample/eQuantic.Core.Api.Sample.csproj @@ -12,14 +12,14 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + +