View Source
Class EntitySlim
Inheritance
System.Object
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
Type |
Description |
System.Int32 |
|
View Source
DeleteDate
Gets or sets the delete date.
Declaration
[DataMember]
public DateTime? DeleteDate { get; set; }
Property Value
Type |
Description |
System.Nullable<DateTime> |
|
View Source
HasChildren
Gets or sets a value indicating whether the entity has children.
Declaration
[DataMember]
public bool HasChildren { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
HasIdentity
Gets a value indicating whether the entity has an identity.
Declaration
[DataMember]
public bool HasIdentity { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Id
Gets or sets the integer identifier of the entity.
Declaration
[DataMember]
public int Id { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
IsContainer
Gets a value indicating whether the entity is a container.
Declaration
[DataMember]
public virtual bool IsContainer { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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
Type |
Description |
System.Int32 |
|
View Source
Name
Gets or sets the name of the entity.
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
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
Type |
Description |
System.Int32 |
|
View Source
Path
Gets or sets the path to the entity.
Declaration
[DataMember]
public string Path { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
SortOrder
Gets or sets the sort order of the entity.
Declaration
[DataMember]
public int SortOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Trashed
Gets a value indicating whether this entity is trashed.
Declaration
[DataMember]
public bool Trashed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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
Type |
Description |
System.Object |
|
View Source
GetDirtyProperties()
Declaration
public IEnumerable<string> GetDirtyProperties()
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetWereDirtyProperties()
Declaration
public IEnumerable<string> GetWereDirtyProperties()
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
IsDirty()
Declaration
Returns
Type |
Description |
System.Boolean |
|
View Source
IsPropertyDirty(String)
Declaration
public bool IsPropertyDirty(string propName)
Parameters
Type |
Name |
Description |
System.String |
propName |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
ResetDirtyProperties()
Declaration
public void ResetDirtyProperties()
View Source
ResetDirtyProperties(Boolean)
Declaration
public void ResetDirtyProperties(bool rememberDirty)
Parameters
Type |
Name |
Description |
System.Boolean |
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
Type |
Description |
System.Boolean |
|
View Source
WasPropertyDirty(String)
Declaration
public bool WasPropertyDirty(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Returns
Type |
Description |
System.Boolean |
|