CmsKit - Add missing ModelCreating constraints for Blog

pull/7596/head
enisn 5 years ago
parent 4290f3b932
commit 84ff2c3518

@ -197,6 +197,8 @@ namespace Volo.CmsKit.EntityFrameworkCore
b.ConfigureByConvention();
b.Property(p => p.Name).IsRequired().HasMaxLength(BlogConsts.MaxNameLength);
b.Property(p => p.UrlSlug).IsRequired().HasMaxLength(BlogConsts.MaxUrlSlugLength);
});
builder.Entity<BlogPost>(b =>

Loading…
Cancel
Save