refactor: add MaxLength to folder fields
This commit is contained in:
parent
9074cf5210
commit
bd1e9dac1f
|
@ -16,8 +16,8 @@ internal sealed class TutorialFolderConfiguration : IEntityTypeConfiguration<Tut
|
||||||
|
|
||||||
builder.Property(e => e.Id).IsRequired();
|
builder.Property(e => e.Id).IsRequired();
|
||||||
builder.Property(e => e.Parent);
|
builder.Property(e => e.Parent);
|
||||||
builder.Property(e => e.Slug).IsRequired();
|
builder.Property(e => e.Slug).HasMaxLength(50).IsRequired();
|
||||||
builder.Property(e => e.Title).IsRequired();
|
builder.Property(e => e.Title).HasMaxLength(255).IsRequired();
|
||||||
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
builder.Property(e => e.PreviewImageUrl).HasConversion<UriToStringConverter>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue