From 1b35f9c9f6c9255c4e4e4e81758505e24644934d Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 29 Aug 2023 16:05:23 +0800 Subject: [PATCH] Rename `Enabled` of `EntityChangeTrackingAttribute` to `IsEnabled`. --- .../Domain/Repositories/EntityChangeTrackingAttribute.cs | 6 +++--- .../Volo/Abp/Domain/Repositories/RepositoryInterceptor.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs index 23bc6ef851..3719cd3c0c 100644 --- a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs +++ b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs @@ -5,10 +5,10 @@ namespace Volo.Abp.Domain.Repositories; [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Interface)] public abstract class EntityChangeTrackingAttribute : Attribute { - public bool Enabled { get; set; } + public virtual bool IsEnabled { get; set; } - public EntityChangeTrackingAttribute(bool enabled) + public EntityChangeTrackingAttribute(bool isEnabled) { - Enabled = enabled; + IsEnabled = isEnabled; } } diff --git a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryInterceptor.cs b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryInterceptor.cs index f322d1e87d..e9727b932f 100644 --- a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryInterceptor.cs +++ b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryInterceptor.cs @@ -21,7 +21,7 @@ public class RepositoryInterceptor : AbpInterceptor, ITransientDependency return; } - using (_entityChangeTrackingProvider.Change(changeTrackingAttribute?.Enabled)) + using (_entityChangeTrackingProvider.Change(changeTrackingAttribute?.IsEnabled)) { await invocation.ProceedAsync(); }