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:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user