|
|
|
@ -100,9 +100,11 @@ namespace Volo.CmsKit.EntityFrameworkCore |
|
|
|
builder.Entity<Content>(b => |
|
|
|
{ |
|
|
|
b.ToTable(options.TablePrefix + "Contents", options.Schema); |
|
|
|
|
|
|
|
|
|
|
|
b.ConfigureByConvention(); |
|
|
|
|
|
|
|
|
|
|
|
b.HasQueryFilter(x => !x.IsDeleted); // TODO: Find out why default filter doesn't work.
|
|
|
|
|
|
|
|
b.Property(x => x.EntityType).IsRequired().HasMaxLength(ContentConsts.MaxEntityTypeLength); |
|
|
|
b.Property(x => x.EntityId).IsRequired().HasMaxLength(ContentConsts.MaxEntityIdLength); |
|
|
|
b.Property(x => x.Value).IsRequired().HasMaxLength(ContentConsts.MaxValueLength); |
|
|
|
|