V14: Extend IContentEntitySlim (#15890)

* Extend EntitySlim with key

* Add ListView to GenericContentEntityDto and ContentEntitySlim

* Move ContentTypeKey and ListViewKey back to BaseDto

* Remove extra DB call when mapping to DocumentTypeReferenceResponseModel

* Remove extra DB call when mapping to MediaTypeReferenceResponseModel

* Remove duplicate db call for members

* Remove now redundant base class

* Fix comment
This commit is contained in:
Mole
2024-03-18 10:46:03 +01:00
committed by GitHub
parent cb02c51da7
commit 1408298adf
12 changed files with 103 additions and 71 deletions

View File

@@ -8,6 +8,11 @@ public class ContentEntitySlim : EntitySlim, IContentEntitySlim
/// <inheritdoc />
public string ContentTypeAlias { get; set; } = string.Empty;
/// <inheritdoc />
public Guid ContentTypeKey { get; set; }
public Guid? ListViewKey { get; set; }
/// <inheritdoc />
public string? ContentTypeIcon { get; set; }

View File

@@ -10,6 +10,16 @@ public interface IContentEntitySlim : IEntitySlim
/// </summary>
string ContentTypeAlias { get; }
/// <summary>
/// Gets the content type key.
/// </summary>
Guid ContentTypeKey { get; }
/// <summary>
/// Gets the listview key.
/// </summary>
Guid? ListViewKey { get; }
/// <summary>
/// Gets the content type icon.
/// </summary>