Class EntityPair<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.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class EntityPair<TPartner> : IEntityPair<TPartner>
Type Parameters
TPartner
- Inheritance
-
objectEntityPair<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
IEntitypartner
TPartner
Remarks
Added in 15.04
Properties
Entity
The entity.
public IEntity Entity { get; }
Property Value
Partner
The partner object. For example an ToSic.Eav.Data.Raw.IRawEntity which was used to create this entity.
public TPartner Partner { get; }
Property Value
- TPartner