From 8377f2d6ae8bb5bf5d65e8d7db7974fb4e323dd7 Mon Sep 17 00:00:00 2001 From: Ahmed Fwela Date: Mon, 20 Nov 2023 16:32:04 +0200 Subject: [PATCH 1/3] Remove IEntityDto restrictions from CrudApplicationService --- .../Volo/Abp/Application/Services/CrudAppService.cs | 6 ------ .../Volo/Abp/Application/Services/ReadOnlyAppService.cs | 8 ++------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs index d8ccce3b73..672d85a2be 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/CrudAppService.cs @@ -11,7 +11,6 @@ namespace Volo.Abp.Application.Services; public abstract class CrudAppService : CrudAppService where TEntity : class, IEntity - where TEntityDto : IEntityDto { protected CrudAppService(IRepository repository) : base(repository) @@ -23,7 +22,6 @@ public abstract class CrudAppService public abstract class CrudAppService : CrudAppService where TEntity : class, IEntity - where TEntityDto : IEntityDto { protected CrudAppService(IRepository repository) : base(repository) @@ -35,7 +33,6 @@ public abstract class CrudAppService public abstract class CrudAppService : CrudAppService where TEntity : class, IEntity - where TEntityDto : IEntityDto { protected CrudAppService(IRepository repository) : base(repository) @@ -47,7 +44,6 @@ public abstract class CrudAppService : CrudAppService where TEntity : class, IEntity - where TEntityDto : IEntityDto { protected CrudAppService(IRepository repository) : base(repository) @@ -69,8 +65,6 @@ public abstract class CrudAppService : AbstractKeyCrudAppService where TEntity : class, IEntity - where TGetOutputDto : IEntityDto - where TGetListOutputDto : IEntityDto { protected new IRepository Repository { get; } diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs index b81455e1bb..abc8299aef 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs @@ -11,7 +11,6 @@ namespace Volo.Abp.Application.Services; public abstract class ReadOnlyAppService : ReadOnlyAppService where TEntity : class, IEntity - where TEntityDto : IEntityDto { protected ReadOnlyAppService(IReadOnlyRepository repository) : base(repository) @@ -22,8 +21,7 @@ public abstract class ReadOnlyAppService public abstract class ReadOnlyAppService : ReadOnlyAppService - where TEntity : class, IEntity - where TEntityDto : IEntityDto + where TEntity : class, IEntity { protected ReadOnlyAppService(IReadOnlyRepository repository) : base(repository) @@ -34,9 +32,7 @@ public abstract class ReadOnlyAppService : AbstractKeyReadOnlyAppService - where TEntity : class, IEntity - where TGetOutputDto : IEntityDto - where TGetListOutputDto : IEntityDto + where TEntity : class, IEntity { protected IReadOnlyRepository Repository { get; } From e464199a0895e9ef332f02df03e8943f46978354 Mon Sep 17 00:00:00 2001 From: Ahmed Fwela <63286031+ahmednfwela@users.noreply.github.com> Date: Mon, 20 Nov 2023 19:22:11 +0200 Subject: [PATCH 2/3] Update framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs --- .../Volo/Abp/Application/Services/ReadOnlyAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs index abc8299aef..76891381f0 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs @@ -21,7 +21,7 @@ public abstract class ReadOnlyAppService public abstract class ReadOnlyAppService : ReadOnlyAppService - where TEntity : class, IEntity + where TEntity : class, IEntity { protected ReadOnlyAppService(IReadOnlyRepository repository) : base(repository) From 967dcbdfcbd7f91f027d7c121d2fa076921b1336 Mon Sep 17 00:00:00 2001 From: Ahmed Fwela <63286031+ahmednfwela@users.noreply.github.com> Date: Mon, 20 Nov 2023 19:22:16 +0200 Subject: [PATCH 3/3] Update framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs --- .../Volo/Abp/Application/Services/ReadOnlyAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs index 76891381f0..867ca35ad4 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/ReadOnlyAppService.cs @@ -32,7 +32,7 @@ public abstract class ReadOnlyAppService : AbstractKeyReadOnlyAppService - where TEntity : class, IEntity + where TEntity : class, IEntity { protected IReadOnlyRepository Repository { get; }