namespace NetAdmin.Domain.DbMaps.Dependency; /// public abstract record ImmutableEntity : ImmutableEntity { /// /// 唯一编码 /// [Column(IsIdentity = false, IsPrimary = true, Position = 1)] [CsvIgnore] [Snowflake] public override long Id { get; init; } } /// /// 不可变实体 /// /// 主键类型 public abstract record ImmutableEntity : LiteImmutableEntity, IFieldCreatedUser where T : IEquatable { /// /// 创建者编号 /// [Column(CanUpdate = false, Position = -1)] [CsvIgnore] [JsonIgnore] public long? CreatedUserId { get; init; } /// /// 创建者用户名 /// [Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_31, CanUpdate = false, Position = -1)] [CsvIgnore] [JsonIgnore] public virtual string CreatedUserName { get; init; } /// /// 唯一编码 /// [Column(IsIdentity = false, IsPrimary = true, Position = 1)] [CsvIgnore] public override T Id { get; init; } }