Make `EntityChangeTrackingAttribute` abstract.

pull/17491/head
maliming 2 years ago
parent f21f52ffb5
commit 4dfdf48e75
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4

@ -3,7 +3,7 @@ using System;
namespace Volo.Abp.Domain.Repositories;
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Interface)]
public class EntityChangeTrackingAttribute : Attribute
public abstract class EntityChangeTrackingAttribute : Attribute
{
public bool Enabled { get; set; }

@ -45,8 +45,8 @@ public static class RepositoryHelper
.Any(HasEntityChangeTrackingAttribute);
}
private static bool HasEntityChangeTrackingAttribute(MemberInfo methodInfo)
private static bool HasEntityChangeTrackingAttribute(MemberInfo memberInfo)
{
return methodInfo.IsDefined(typeof(EntityChangeTrackingAttribute), true);
return memberInfo.IsDefined(typeof(EntityChangeTrackingAttribute), true);
}
}

Loading…
Cancel
Save