fix: use EnumToStringConverter for Visibility fields
This commit is contained in:
parent
bd1e9dac1f
commit
817019ad16
@ -23,5 +23,6 @@ internal sealed class TutorialArticleConfiguration : IEntityTypeConfiguration<Tu
|
|||||||
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
||||||
builder.Property(e => e.NextPart);
|
builder.Property(e => e.NextPart);
|
||||||
builder.Property(e => e.PreviousPart);
|
builder.Property(e => e.PreviousPart);
|
||||||
|
builder.Property(e => e.Visibility).HasConversion<EnumToStringConverter<Visibility>>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,5 +19,6 @@ internal sealed class TutorialFolderConfiguration : IEntityTypeConfiguration<Tut
|
|||||||
builder.Property(e => e.Slug).HasMaxLength(50).IsRequired();
|
builder.Property(e => e.Slug).HasMaxLength(50).IsRequired();
|
||||||
builder.Property(e => e.Title).HasMaxLength(255).IsRequired();
|
builder.Property(e => e.Title).HasMaxLength(255).IsRequired();
|
||||||
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
||||||
|
builder.Property(e => e.Visibility).HasConversion<EnumToStringConverter<Visibility>>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user