feat: db操作支持不修改更新审计日志
This commit is contained in:
@@ -24,6 +24,15 @@ namespace Yi.Framework.Bbs.Domain.Entities.Forum
|
||||
PlateId = plateId;
|
||||
}
|
||||
|
||||
public void AddSeeNumber()
|
||||
{
|
||||
this.SeeNum += 1;
|
||||
//设置最小值,不更新
|
||||
this.LastModificationTime = DateTime.MinValue;
|
||||
//设置空值,不更新
|
||||
this.LastModifierId = Guid.Empty;
|
||||
}
|
||||
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public override Guid Id { get; protected set; }
|
||||
public string? Title { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user