You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9 KiB

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace zzz.Model
{
/// <summary>
///
/// </summary>
/// <typeparam name="Tkey"></typeparam>
public class RootEntityTkey<Tkey> where Tkey : IEquatable<Tkey>
{
/// <summary>
/// ID
/// 泛型主键Tkey
/// </summary>
[SugarColumn(IsNullable = false, IsPrimaryKey = true,ColumnDescription ="主键")]
public Tkey Id { get; set; }
/// <summary>
/// 创建ID
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "创建者ID")]
public long? CreateId { get; set; }
/// <summary>
/// 创建者
/// </summary>
[SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "创建者名称")]
public string CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
public DateTime? CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 修改ID
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "修改ID")]
public long? ModifyId { get; set; }
/// <summary>
/// 修改者
/// </summary>
[SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "修改者名称")]
public string ModifyBy { get; set; }
/// <summary>
/// 修改时间
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
public DateTime? ModifyTime { get; set; }
/// <summary>
///获取或设置是否禁用,逻辑上的删除,非物理删除
/// </summary>
[SugarColumn(IsNullable = true, ColumnDescription = "逻辑删除")]
public bool IsDeleted { get; set; } = false;
}
}