From bd1e9dac1f38401cd5c88bc111944dd5768ef2b2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 23 Feb 2024 17:51:22 +0000 Subject: [PATCH] refactor: add MaxLength to folder fields --- .../Data/Web/Configuration/TutorialFolderConfiguration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OliverBooth/Data/Web/Configuration/TutorialFolderConfiguration.cs b/OliverBooth/Data/Web/Configuration/TutorialFolderConfiguration.cs index a925f63..5fce7f2 100644 --- a/OliverBooth/Data/Web/Configuration/TutorialFolderConfiguration.cs +++ b/OliverBooth/Data/Web/Configuration/TutorialFolderConfiguration.cs @@ -16,8 +16,8 @@ internal sealed class TutorialFolderConfiguration : IEntityTypeConfiguration e.Id).IsRequired(); builder.Property(e => e.Parent); - builder.Property(e => e.Slug).IsRequired(); - builder.Property(e => e.Title).IsRequired(); + builder.Property(e => e.Slug).HasMaxLength(50).IsRequired(); + builder.Property(e => e.Title).HasMaxLength(255).IsRequired(); builder.Property(e => e.PreviewImageUrl).HasConversion(); } }