Interface IEntity
Defines an Entity. Entities should always have an Id, Created and Modified date
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IEntity : IDeepCloneable
Remarks
The current database schema doesn't provide a modified date for all entities, so this will have to be changed at a later stage.
Properties
CreateDate
Gets or sets the Created Date
Declaration
[DataMember]
DateTime CreateDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
HasIdentity
Indicates whether the current entity has an identity, eg. Id.
Declaration
[IgnoreDataMember]
bool HasIdentity { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
The Id of the entity
Declaration
[DataMember]
int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Key
Guid based Id
Declaration
[DataMember]
Guid Key { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Remarks
The key is currectly used to store the Unique Id from the umbracoNode table, which many of the entities are based on.
UpdateDate
Gets or sets the Modified Date
Declaration
[DataMember]
DateTime UpdateDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |