feat: 搭建审计日志模块
This commit is contained in:
@@ -76,12 +76,13 @@ namespace Yi.Framework.SqlSugarCore
|
||||
{
|
||||
EntityService = (c, p) =>
|
||||
{
|
||||
|
||||
if (new NullabilityInfoContext()
|
||||
.Create(c).WriteState is NullabilityState.Nullable)
|
||||
{
|
||||
p.IsNullable = true;
|
||||
}
|
||||
|
||||
EntityService(c,p);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -236,6 +237,16 @@ namespace Yi.Framework.SqlSugarCore
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实体配置
|
||||
/// </summary>
|
||||
/// <param name="property"></param>
|
||||
/// <param name="column"></param>
|
||||
protected virtual void EntityService(PropertyInfo property, EntityColumnInfo column)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void BackupDataBase()
|
||||
{
|
||||
string directoryName = "database_backup";
|
||||
|
||||
Reference in New Issue
Block a user