Skip to content

Commit

Permalink
fix: 修复多语言FlagIcon为非必填
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed May 19, 2023
1 parent cc3448c commit 43da750
Show file tree
Hide file tree
Showing 5 changed files with 1,975 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ private void SetDisplayName(string displayName)
/// </summary>
private void SetFlagIcon(string flagIcon)
{
Guard.Length(flagIcon, nameof(flagIcon), 128, 0);
FlagIcon = flagIcon;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void ConfigureLanguageManagement(
b.Property(e => e.CultureName).IsRequired().HasMaxLength(128).HasComment("语言名称");
b.Property(e => e.UiCultureName).IsRequired().HasMaxLength(128).HasComment("Ui语言名称");
b.Property(e => e.DisplayName).IsRequired().HasMaxLength(128).HasComment("显示名称");
b.Property(e => e.FlagIcon).IsRequired().HasComment("图标");
b.Property(e => e.FlagIcon).HasMaxLength(128).HasComment("图标");
b.Property<bool>(x => x.IsEnabled).IsRequired();
b.HasIndex(e => e.CultureName).IsUnique();
b.ConfigureByConvention();
Expand Down
Loading

0 comments on commit 43da750

Please sign in to comment.