Table of Contents

Class ModelOfEntityBasic

Namespace
ToSic.Eav.Models
Assembly
ToSic.Eav.Data.dll

A basic model (record) of entities. It extends the core implementation by providing Id, Guid and Title by default.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public abstract record ModelOfEntityBasic : ModelOfEntity, IModelSetup<IEntity>, IModelOfEntity, IModelOfData, IEquatable<ModelOfEntity>, IModelOfEntityBasic, ICanBeEntity, IEquatable<ModelOfEntityBasic>
Inheritance
object
ModelOfEntityBasic
Implements
Derived
Inherited Members
Extension Methods

Constructors

ModelOfEntityBasic()

Empty constructor, so it can be inherited without having to specify a constructor.

protected ModelOfEntityBasic()

ModelOfEntityBasic(IEntity)

Constructor which already includes the data to wrap; rarely used.

protected ModelOfEntityBasic(IEntity entity)

Parameters

entity IEntity

Properties

Guid

The entity guid, as quick, nice accessor.

public Guid Guid { get; }

Property Value

Guid

The guid, or an empty-guid of no entity available

Id

The entity id, as quick, nice accessor.

public int Id { get; }

Property Value

int

The id, or 0 if no entity available

Title

The title as string.

public virtual string Title { get; }

Property Value

string

The title, or an empty string if not available or not string-able

Remarks

Can be overriden by other parts, if necessary.