Browse Source
Make `EntityChangeTrackingAttribute` abstract.
pull/17491/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
3 additions and
3 deletions
-
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs
-
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryHelper.cs
|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|