Table of Contents

Interface IEntityMapper

Namespace
Coherence.Entities
Assembly
Coherence.Entities.dll
public interface IEntityMapper

Methods

FindAbsoluteEntity(Entity, out Entity)

bool FindAbsoluteEntity(Entity relativeEntity, out Entity absoluteEntity)

Parameters

relativeEntity Entity
absoluteEntity Entity

Returns

bool

FindRelativeEntity(Entity, out Entity)

bool FindRelativeEntity(Entity absoluteEntity, out Entity relativeEntity)

Parameters

absoluteEntity Entity
relativeEntity Entity

Returns

bool

HasRelativeEntityMapped(Entity)

bool HasRelativeEntityMapped(Entity relativeEntity)

Parameters

relativeEntity Entity

Returns

bool

MapToAbsoluteEntity(Entity, bool, out Entity)

IEntityMapper.Error MapToAbsoluteEntity(Entity relativeEntity, bool createEntityIfNotFound, out Entity absoluteEntity)

Parameters

relativeEntity Entity
createEntityIfNotFound bool
absoluteEntity Entity

Returns

IEntityMapper.Error

MapToRelativeEntity(Entity, bool, out Entity)

IEntityMapper.Error MapToRelativeEntity(Entity absoluteEntity, bool createEntityIfNotFound, out Entity relativeEntity)

Parameters

absoluteEntity Entity
createEntityIfNotFound bool
relativeEntity Entity

Returns

IEntityMapper.Error

UnmapRelativeEntity(Entity, string)

IEntityMapper.Error UnmapRelativeEntity(Entity relativeEntity, string reason)

Parameters

relativeEntity Entity
reason string

Returns

IEntityMapper.Error