diff --git a/Src/Asp.Net/SqlSugar/Enum/DataFilterType.cs b/Src/Asp.Net/SqlSugar/Enum/DataFilterType.cs index 039ab15f9..739edf121 100644 --- a/Src/Asp.Net/SqlSugar/Enum/DataFilterType.cs +++ b/Src/Asp.Net/SqlSugar/Enum/DataFilterType.cs @@ -30,6 +30,14 @@ namespace SqlSugar } this.EntityColumnInfo.PropertyInfo.SetValue(EntityValue, value); } + public bool IsAnyAttribute() where T : Attribute + { + return this.EntityColumnInfo.PropertyInfo.GetCustomAttribute() != null; + } + public T GetAttribute() where T : Attribute + { + return this.EntityColumnInfo.PropertyInfo.GetCustomAttribute(); + } } public class DataAfterModel {