CmsKit - Handle SofDelete manually as temporary solution

pull/6926/head
enisn 5 years ago
parent 7dcf5c88e4
commit 74070ecc76

@ -105,6 +105,8 @@ namespace Volo.CmsKit.EntityFrameworkCore
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);

@ -216,8 +216,19 @@ namespace Volo.CmsKit
_cmsKitTestData.Content_2
);
var content3 = new Content(
Guid.NewGuid(),
"a",
"b",
"Content"
)
{
IsDeleted = true,
};
await _contentRepository.InsertAsync(content1);
await _contentRepository.InsertAsync(content2);
await _contentRepository.InsertAsync(content3);
}
private async Task SeedTagsAsync()

Loading…
Cancel
Save