using System; using System.ComponentModel.DataAnnotations; namespace ProductionLineMonitor.Core.Models { /// /// 基类 /// public abstract class Base { public Base() { Id = Guid.NewGuid().ToString().ToUpper(); } /// /// 主键 /// [Key] public string Id { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// 修改时间 /// public DateTime? UpdateTime { get; set; } } }