Table of Contents

Interface IRelationshipManager

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

Manages relationships of an entity - to it's children and parents.

[InternalApi_DoNotUse_MayChangeWithoutNotice("this is just fyi")]
public interface IRelationshipManager

Properties

AllChildren

Get all Child Entities

IEnumerable<IEntity> AllChildren { get; }

Property Value

IEnumerable<IEntity>

List of all Entities referenced by this Entity.

AllParents

Get all Parent Entities

IEnumerable<IEntity> AllParents { get; }

Property Value

IEnumerable<IEntity>

List of all Entities referencing this Entity.

Methods

FindChildren(string, string, ILog)

Find the children with optional criteria.

List<IEntity> FindChildren(string field = null, string type = null, ILog log = null)

Parameters

field string

Get only the children of a specific field

type string

Restrict the results to a specific ContentType

log ILog

Optional logger, to debug what happens internally

Returns

List<IEntity>

Always returns a list - empty or containing results

FindParents(string, string, ILog)

Find the parents with optional criteria.

List<IEntity> FindParents(string type = null, string field = null, ILog log = null)

Parameters

type string

Restrict the results to a specific ContentType

field string

Get only the children of a specific field

log ILog

Optional logger, to debug what happens internally

Returns

List<IEntity>

Always returns a list - empty or containing results