feat: 搭建审计日志模块

This commit is contained in:
陈淳
2023-12-27 18:59:26 +08:00
parent d86ee7a028
commit 8ef2ff43b0
6 changed files with 455 additions and 1 deletions

View File

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