View Source
Class EntitySlim
Assembly: Umbraco.Core.dll
Syntax
public class EntitySlim : IEntitySlim, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable
Fields
View Source
Root
Gets an entity representing "root".
Declaration
public static readonly IEntitySlim Root
Field Value
Properties
View Source
CreateDate
Gets or sets the creation date.
Declaration
[DataMember]
public DateTime CreateDate { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
View Source
CreatorId
Gets or sets the identifier of the user who created this entity.
Declaration
[DataMember]
public int CreatorId { get; set; }
Property Value
View Source
DeleteDate
Gets or sets the delete date.
Declaration
[DataMember]
public DateTime? DeleteDate { get; set; }
Property Value
| Type |
Description |
| DateTime? |
|
View Source
HasChildren
Gets or sets a value indicating whether the entity has children.
Declaration
[DataMember]
public bool HasChildren { get; set; }
Property Value
View Source
HasIdentity
Gets a value indicating whether the entity has an identity.
Declaration
[DataMember]
public bool HasIdentity { get; }
Property Value
View Source
Id
Gets or sets the integer identifier of the entity.
Declaration
[DataMember]
public int Id { get; set; }
Property Value
View Source
IsContainer
Gets a value indicating whether the entity is a container.
Declaration
[DataMember]
public virtual bool IsContainer { get; set; }
Property Value
View Source
Key
Gets or sets the Guid unique identifier of the entity.
Declaration
[DataMember]
public Guid Key { get; set; }
Property Value
View Source
Level
Gets or sets the level of the entity.
Declaration
[DataMember]
public int Level { get; set; }
Property Value
View Source
Name
Gets or sets the name of the entity.
Declaration
[DataMember]
public string? Name { get; set; }
Property Value
View Source
NodeObjectType
Gets or sets the entity object type.
Declaration
[DataMember]
public Guid NodeObjectType { get; set; }
Property Value
View Source
ParentId
Gets or sets the identifier of the parent entity.
Declaration
[DataMember]
public int ParentId { get; set; }
Property Value
View Source
Path
Gets or sets the path to the entity.
Declaration
[DataMember]
public string Path { get; set; }
Property Value
View Source
SortOrder
Gets or sets the sort order of the entity.
Declaration
[DataMember]
public int SortOrder { get; set; }
Property Value
View Source
Trashed
Gets a value indicating whether this entity is trashed.
Declaration
[DataMember]
public bool Trashed { get; set; }
Property Value
View Source
UpdateDate
Gets or sets the last update date.
Declaration
[DataMember]
public DateTime UpdateDate { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
Methods
View Source
DeepClone()
Declaration
public object DeepClone()
Returns
View Source
GetDirtyProperties()
Declaration
public IEnumerable<string> GetDirtyProperties()
Returns
| Type |
Description |
| IEnumerable<string> |
|
View Source
GetWereDirtyProperties()
Declaration
public IEnumerable<string> GetWereDirtyProperties()
Returns
| Type |
Description |
| IEnumerable<string> |
|
View Source
IsDirty()
Declaration
Returns
View Source
IsPropertyDirty(string)
Declaration
public bool IsPropertyDirty(string propName)
Parameters
| Type |
Name |
Description |
| string |
propName |
|
Returns
View Source
ResetDirtyProperties()
Declaration
public void ResetDirtyProperties()
View Source
ResetDirtyProperties(bool)
Declaration
public void ResetDirtyProperties(bool rememberDirty)
Parameters
| Type |
Name |
Description |
| bool |
rememberDirty |
|
View Source
ResetIdentity()
Declaration
public void ResetIdentity()
View Source
ResetWereDirtyProperties()
Declaration
public void ResetWereDirtyProperties()
View Source
SetParent(ITreeEntity?)
Declaration
public void SetParent(ITreeEntity? parent)
Parameters
View Source
WasDirty()
Declaration
Returns
View Source
WasPropertyDirty(string)
Declaration
public bool WasPropertyDirty(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Returns