Browse Source

Synchronization code

SqlSugar5
sunkaixuan 2 years ago
parent
commit
c5d2b84972
  1. 8
      Src/Asp.NetCore2/SqlSugar/Enum/DataFilterType.cs

8
Src/Asp.NetCore2/SqlSugar/Enum/DataFilterType.cs

@ -30,6 +30,14 @@ namespace SqlSugar
}
this.EntityColumnInfo.PropertyInfo.SetValue(EntityValue, value);
}
public bool IsAnyAttribute<T>() where T : Attribute
{
return this.EntityColumnInfo.PropertyInfo.GetCustomAttribute<T>() != null;
}
public T GetAttribute<T>() where T : Attribute
{
return this.EntityColumnInfo.PropertyInfo.GetCustomAttribute<T>();
}
}
public class DataAfterModel
{

Loading…
Cancel
Save