代码拉取完成,页面将自动刷新
namespace NET7.Domain.Entities;
/// <summary>
/// 实体基类
/// </summary>
public class EntityBase
{
/// <summary>
/// 编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键")]
public string Id { get; set; } = Guid.NewGuid().ToString("N");
/// <summary>
/// 是否删除
/// </summary>
[SugarColumn(ColumnDescription = "是否删除")]
public bool IsDeleted { get; set; } = false;
/// <summary>
/// 创建者Id
/// </summary>
[SugarColumn(ColumnDescription = "创建者Id")]
public string CreateUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SplitField]
[SugarColumn(ColumnDescription = "创建时间", IndexGroupNameList = new string[] { "index1" })]
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 删除者Id
/// </summary>
[SugarColumn(ColumnDescription = "删除者Id")]
public string DeleteUserId { get; set; }
/// <summary>
/// 删除时间
/// </summary>
[SugarColumn(ColumnDescription = "删除时间", IsNullable = true)]
public DateTime? DeleteTime { get; set; }
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。