From 8377f2d6ae8bb5bf5d65e8d7db7974fb4e323dd7 Mon Sep 17 00:00:00 2001 From: Ahmed Fwela Date: Mon, 20 Nov 2023 16:32:04 +0200 Subject: [PATCH] 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; }