Skip to content

Commit 10b60e2

Browse files
committed
Set max length for tags
1 parent afb8824 commit 10b60e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LinkDotNet.Blog.Infrastructure/Persistence/Sql/Mapping/BlogPostConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public void Configure(EntityTypeBuilder<BlogPost> builder)
1717
builder.Property(x => x.ShortDescription).IsRequired();
1818
builder.Property(x => x.Likes).IsRequired();
1919
builder.Property(x => x.IsPublished).IsRequired();
20+
builder.Property(x => x.Tags).HasMaxLength(2096);
2021

2122
builder.HasIndex(x => new { x.IsPublished, x.UpdatedDate })
2223
.HasDatabaseName("IX_BlogPosts_IsPublished_UpdatedDate")

0 commit comments

Comments
 (0)