style: 💄 代码整理 (#88)

This commit is contained in:
2024-02-02 18:16:51 +08:00
committed by GitHub
parent 8293ec0297
commit 6f32acaacf
147 changed files with 715 additions and 658 deletions

View File

@@ -13,5 +13,5 @@ public interface IFieldCreatedUser
/// <summary>
/// 创建者用户名
/// </summary>
string CreatedUserName { get; set; }
string CreatedUserName { get; init; }
}

View File

@@ -26,7 +26,7 @@ public abstract record ImmutableEntity<T> : LiteImmutableEntity<T>, IFieldCreate
/// <inheritdoc cref="IFieldCreatedUser.CreatedUserName" />
[JsonIgnore]
[Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_31, CanUpdate = false, Position = -1)]
public virtual string CreatedUserName { get; set; }
public virtual string CreatedUserName { get; init; }
/// <inheritdoc cref="IFieldPrimary{T}.Id" />
[Column(IsIdentity = false, IsPrimary = true, Position = 1)]

View File

@@ -25,7 +25,7 @@ public abstract record VersionEntity<T> : LiteVersionEntity<T>, IFieldModifiedUs
/// <inheritdoc />
[JsonIgnore]
[Column(DbType = Chars.FLG_DB_FIELD_TYPE_VARCHAR_31, CanUpdate = false, Position = -1)]
public string CreatedUserName { get; set; }
public string CreatedUserName { get; init; }
/// <inheritdoc cref="IFieldPrimary{T}.Id" />
[Column(IsIdentity = false, IsPrimary = true, Position = 1)]