These v19 docs are archived 🔒.
Go to the
latest docs home
or try if
this exact page is available
in the latest docs.
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 record EntityPair<TPartner> : IEntityPair<TPartner>, IEquatable<EntityPair<TPartner>>
Type Parameters
TPartner
- Inheritance
-
objectEntityPair<TPartner>
- Implements
-
IEntityPair<TPartner>IEquatable<EntityPair<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; init; }
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; init; }
Property Value
- TPartner