Interface IEntity
Defines an entity.
Namespace: Umbraco.Cms.Core.Models.Entities
Assembly: Umbraco.Core.dll
Syntax
public interface IEntity : IDeepCloneableProperties
View SourceCreateDate
Gets or sets the creation date.
Declaration
DateTime CreateDate { get; set; }Property Value
| Type | Description | 
|---|---|
| DateTime | 
DeleteDate
Gets or sets the delete date.
Declaration
DateTime? DeleteDate { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<DateTime> | 
Remarks
The delete date is null when the entity has not been deleted.
The delete date has a value when the entity instance has been deleted, but this value is transient and not persisted in database (since the entity does not exist anymore).
HasIdentity
Gets a value indicating whether the entity has an identity.
Declaration
bool HasIdentity { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Id
Gets or sets the integer identifier of the entity.
Declaration
int Id { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Key
Gets or sets the Guid unique identifier of the entity.
Declaration
Guid Key { get; set; }Property Value
| Type | Description | 
|---|---|
| Guid | 
UpdateDate
Gets or sets the last update date.
Declaration
DateTime UpdateDate { get; set; }Property Value
| Type | Description | 
|---|---|
| DateTime | 
Methods
View SourceResetIdentity()
Declaration
void ResetIdentity()