Browse Source

Make `EntityChangeTrackingAttribute` abstract.

pull/17491/head
maliming 3 years ago
parent
commit
4dfdf48e75
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.cs
  2. 4
      framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryHelper.cs

2
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/EntityChangeTrackingAttribute.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; }

4
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Repositories/RepositoryHelper.cs

@ -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