Table of Contents

Interface IEntityLight

Namespace
ToSic.Eav.Data
Assembly
ToSic.Eav.Core.dll

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).

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

ITarget

A ToSic.Eav.Metadata.ITarget object describing the target.

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

int

This is based on the Owner but will only return the ID

Remarks

Added in v15.03

Relationships

Relationship-helper object, important to navigate to children and parents

IEntityRelationships Relationships { get; }

Property Value

IEntityRelationships

The IEntityRelationships in charge of relationships for this Entity.

Type

Gets the ContentType of this Entity

IContentType Type { get; }

Property Value

IContentType

The content-type object.