V14: List view reference in ContentType (#15687)
* Replace all IsContainer mentions with new ListView property * Map the list view when creating and updating * Implement list view migration * Refactor listview to collection * Do not assign listview if IsContainer is false * Fix up HasContainerInPath query * Update OpenApi.json * fix up according to review * Refactor duplicate code to use extension method instead * Dont make new guid, check for null * Make extension internal * Fix up after merge * Use ReferenceById static method instead of extension
This commit is contained in:
@@ -460,7 +460,11 @@ internal class EntityRepository : RepositoryBase, IEntityRepositoryExtended
|
||||
{
|
||||
sql
|
||||
.AndSelect<ContentVersionDto>(x => Alias(x.Id, "versionId"), x => x.VersionDate)
|
||||
.AndSelect<ContentTypeDto>(x => x.Alias, x => x.Icon, x => x.Thumbnail, x => x.IsContainer,
|
||||
.AndSelect<ContentTypeDto>(
|
||||
x => x.Alias,
|
||||
x => x.Icon,
|
||||
x => x.Thumbnail,
|
||||
x => x.ListView,
|
||||
x => x.Variations);
|
||||
}
|
||||
|
||||
@@ -589,7 +593,11 @@ internal class EntityRepository : RepositoryBase, IEntityRepositoryExtended
|
||||
{
|
||||
sql
|
||||
.AndBy<ContentVersionDto>(x => x.Id, x => x.VersionDate)
|
||||
.AndBy<ContentTypeDto>(x => x.Alias, x => x.Icon, x => x.Thumbnail, x => x.IsContainer,
|
||||
.AndBy<ContentTypeDto>(
|
||||
x => x.Alias,
|
||||
x => x.Icon,
|
||||
x => x.Thumbnail,
|
||||
x => x.ListView,
|
||||
x => x.Variations);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user