MasstransferExporter/MasstransferCommon/Model/Entity/Entity.cs

16 lines
415 B
C#

using Newtonsoft.Json;
using SQLite;
namespace MasstransferCommon.Model.Entity;
/// <summary>
/// 数据库实体的父类
/// </summary>
public class Entity
{
[PrimaryKey] public string? Id { get; set; }
[Column("create_time"), JsonIgnore] public DateTime CreateTime { get; set; } = DateTime.Now;
[Column("update_time"), JsonIgnore] public DateTime UpdateTime { get; set; } = DateTime.Now;
}