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.

28 lines
602 B
C#

using SqlSugar;
using System;
namespace CompressorXN_Model
{
public class BaseModel
{
public BaseModel()
{
Id = Guid.NewGuid().ToString();
CreatedTime = DateTime.Now;
}
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
public string Id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "createdtime", IsOnlyIgnoreUpdate = true)]
public DateTime CreatedTime { get; set; }
}
}