MasstransferExporter/MasstransferCommon/Model/Entity/Entity.cs

16 lines
415 B
C#
Raw Normal View History

2024-09-06 09:20:36 +00:00
using Newtonsoft.Json;
using SQLite;
2024-07-08 05:53:40 +00:00
namespace MasstransferCommon.Model.Entity;
/// <summary>
/// 数据库实体的父类
/// </summary>
public class Entity
{
[PrimaryKey] public string? Id { get; set; }
2024-09-06 09:20:36 +00:00
[Column("create_time"), JsonIgnore] public DateTime CreateTime { get; set; } = DateTime.Now;
2024-07-08 05:53:40 +00:00
2024-09-06 09:20:36 +00:00
[Column("update_time"), JsonIgnore] public DateTime UpdateTime { get; set; } = DateTime.Now;
2024-07-08 05:53:40 +00:00
}