Files
Umbraco-CMS/src/Umbraco.Core/Models/Entities/IContentEntitySlim.cs
Mole 1408298adf 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
2024-03-18 10:46:03 +01:00

33 lines
769 B
C#

namespace Umbraco.Cms.Core.Models.Entities;
/// <summary>
/// Represents a lightweight content entity, managed by the entity service.
/// </summary>
public interface IContentEntitySlim : IEntitySlim
{
/// <summary>
/// Gets the content type alias.
/// </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>
string? ContentTypeIcon { get; }
/// <summary>
/// Gets the content type thumbnail.
/// </summary>
string? ContentTypeThumbnail { get; }
}