Interface IRelationshipManager
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
stringGet only the children of a specific field
type
stringRestrict the results to a specific ContentType
log
ILogOptional logger, to debug what happens internally
Returns
FindParents(string, string, ILog)
Find the parents with optional criteria.
List<IEntity> FindParents(string type = null, string field = null, ILog log = null)
Parameters
type
stringRestrict the results to a specific ContentType
field
stringGet only the children of a specific field
log
ILogOptional logger, to debug what happens internally