Synchronization code

This commit is contained in:
sunkaixuan
2022-09-29 21:27:39 +08:00
parent cc25a51445
commit c5d2b84972

View File

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