@ -1,11 +1,9 @@
namespace Volo.CmsKit.Blogs
{
public class BlogPostConsts
public static class BlogPostConsts
public static int MaxTitleLength { get; set; } = 256;
public static int MaxCoverImageUrlLength { get; set; } = 2048;
public static int MaxUrlSlugLength { get; set; } = 256;
public static int MinUrlSlugLength { get; set; } = 2;
@ -229,8 +229,6 @@ namespace Volo.CmsKit.EntityFrameworkCore
b.Property(p => p.UrlSlug).IsRequired().HasMaxLength(BlogPostConsts.MaxUrlSlugLength);
b.Property(p => p.CoverImageUrl).HasMaxLength(BlogPostConsts.MaxCoverImageUrlLength);
b.HasIndex(x => x.UrlSlug);
});
}