You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using SqlSugar;
|
|
using System;
|
|
|
|
namespace EntrustSettle.Model;
|
|
|
|
[SugarIndex("index_{table}_IsDeleted", nameof(IsDeleted), OrderByType.Asc)]
|
|
public class BaseEntity : RootEntityTkey<long>, IDeleteFilter
|
|
{
|
|
/// <summary>
|
|
/// 是否逻辑删除
|
|
/// </summary>
|
|
public bool IsDeleted { get; set; }
|
|
|
|
#region 创建
|
|
|
|
/// <summary>
|
|
/// 创建者ID
|
|
/// </summary>
|
|
[SugarColumn(IsOnlyIgnoreUpdate = true)]
|
|
public string CreateId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建者名称
|
|
/// </summary>
|
|
[SugarColumn(IsOnlyIgnoreUpdate = true)]
|
|
public string CreateBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(IsOnlyIgnoreUpdate = true)]
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|
#endregion
|
|
|
|
#region 修改
|
|
|
|
/// <summary>
|
|
/// 修改者ID
|
|
/// </summary>
|
|
[SugarColumn(IsOnlyIgnoreInsert = true)]
|
|
public string ModifyId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改者名称
|
|
/// </summary>
|
|
[SugarColumn(IsOnlyIgnoreInsert = true)]
|
|
public string ModifyBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改时间
|
|
/// </summary>
|
|
// [SugarColumn(IsOnlyIgnoreInsert = true)] 因为存在新增时赋值的情况,所以不加此特性
|
|
public DateTime? ModifyTime { get; set; }
|
|
#endregion
|
|
} |