diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyCrudAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyCrudAppService.cs index ce44a22455..11550c456f 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyCrudAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyCrudAppService.cs @@ -62,7 +62,7 @@ namespace Volo.Abp.Application.Services ICrudAppService where TEntity : class, IEntity { - protected new IRepository Repository { get; } + protected IRepository Repository { get; } protected virtual string CreatePolicyName { get; set; } diff --git a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyReadOnlyAppService.cs b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyReadOnlyAppService.cs index 45dff23852..9085434211 100644 --- a/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyReadOnlyAppService.cs +++ b/framework/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Services/AbstractKeyReadOnlyAppService.cs @@ -36,7 +36,7 @@ namespace Volo.Abp.Application.Services , IReadOnlyAppService where TEntity : class, IEntity { - protected IReadOnlyRepository Repository { get; } + protected IReadOnlyRepository ReadOnlyRepository { get; } protected virtual string GetPolicyName { get; set; } @@ -44,7 +44,7 @@ namespace Volo.Abp.Application.Services protected AbstractKeyReadOnlyAppService(IReadOnlyRepository repository) { - Repository = repository; + ReadOnlyRepository = repository; } public virtual async Task GetAsync(TKey id) @@ -123,7 +123,7 @@ namespace Volo.Abp.Application.Services return query.OrderByDescending(e => ((ICreationAuditedObject)e).CreationTime); } - throw new AbpException("No sorting specified but this query requires sorting. Override the ApplyDefaultSorting method for your application service derived from AbstractKeyCrudAppService!"); + throw new AbpException("No sorting specified but this query requires sorting. Override the ApplyDefaultSorting method for your application service derived from AbstractKeyReadOnlyAppService!"); } /// @@ -158,7 +158,7 @@ namespace Volo.Abp.Application.Services /// The input. protected virtual IQueryable CreateFilteredQuery(TGetListInput input) { - return Repository; + return ReadOnlyRepository; } ///