Interface IEntityLight
Represents a light Entity, which is a very basic entity without multi-language capabilities, versions or publishing. For the more powerful Entity, use IEntity.
[InternalApi_DoNotUse_MayChangeWithoutNotice("this is just fyi")]
public interface IEntityLight : IAppIdentityLight
- Inherited Members
Properties
Created
Gets the Created DateTime
DateTime Created { get; }
Property Value
- DateTime
A date-time object.
EntityGuid
Gets the EntityGuid
Guid EntityGuid { get; }
Property Value
- Guid
The GUID of the Entity
EntityId
Gets the EntityId
int EntityId { get; }
Property Value
- int
The internal EntityId - usually for reference in the DB, but not quite always (like when this is a draft entity).
this[string]
Gets an Attribute by its StaticName
object this[string attributeName] { get; }
Parameters
attributeName
stringStaticName of the Attribute
Property Value
- object
The attribute - probably an IAttribute<T>
MetadataFor
Information which is relevant if this current entity is actually mapped to something else. If it is mapped, then it's describing another thing, which is identified in this MetadataFor.
ITarget MetadataFor { get; }
Property Value
Modified
Gets the Last Modified DateTime
DateTime Modified { get; }
Property Value
- DateTime
A date-time object.
Owner
Owner of this entity
string Owner { get; }
Property Value
- string
A string identifying the owner. Uses special encoding to work with various user-ID providers.
OwnerId
Owner of this entity - as an int-ID
int OwnerId { get; }
Property Value
Remarks
Added in v15.03
Relationships
Relationship-helper object, important to navigate to children and parents
IRelationshipManager Relationships { get; }
Property Value
- IRelationshipManager
The IRelationshipManager in charge of relationships for this Entity.
Title
Gets the "official" Title-Attribute IAttribute<T>
object Title { get; }
Property Value
- object
The title of this Entity. The field used is determined in the IContentType. If you need a string, use GetBestTitle() instead.
Type
Gets the ContentType of this Entity
IContentType Type { get; }
Property Value
- IContentType
The content-type object.
Methods
GetBestTitle()
Best way to get the current entities title. The field used is determined in the IContentType. If you need the attribute-object, use the Title instead.
string GetBestTitle()
Returns
- string
The entity title as a string.