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(); }