Table of Contents

Class EntityPair<TPartner>

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

Special object to carry an IEntity and another object which belong together.

This is mainly used in scenarios where you create new Entities and must keep the original tied to the Entity because you may still need the original later on for further processing.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class EntityPair<TPartner> : IEntityPair<TPartner>

Type Parameters

TPartner
Inheritance
EntityPair<TPartner>
Implements
IEntityPair<TPartner>

Remarks

Added in 15.04

Constructors

EntityPair(IEntity, TPartner)

Special object to carry an IEntity and another object which belong together.

This is mainly used in scenarios where you create new Entities and must keep the original tied to the Entity because you may still need the original later on for further processing.

public EntityPair(IEntity entity, TPartner partner)

Parameters

entity IEntity
partner TPartner

Remarks

Added in 15.04

Properties

Entity

The entity.

public IEntity Entity { get; }

Property Value

IEntity

Partner

The partner object. For example an IRawEntity which was used to create this entity.

public TPartner Partner { get; }

Property Value

TPartner