• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Class Parents

    Get Parent Entities (parent-relationships) of the Entities coming into this DataSource

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
    DataSourceBase
    ToSic.Eav.DataSources.RelationshipDataSourceBase
    Parents
    Implements
    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    Inherited Members
    DataSourceBase.AppId
    DataSourceBase.ZoneId
    DataSourceBase.Guid
    DataSourceBase.Error
    DataSourceBase.CacheTimestamp
    DataSourceBase.CacheChanged(Int64)
    DataSourceBase.Configuration
    DataSourceBase.Link
    DataSourceBase.In
    DataSourceBase.TryGetIn(String)
    DataSourceBase.TryGetOut(String)
    DataSourceBase.Out
    DataSourceBase.Item[String]
    DataSourceBase.GetStream(String, String, Boolean, Boolean)
    DataSourceBase.List
    DataSourceBase.Attach(IDataSource)
    DataSourceBase.Attach(String, IDataSource, String)
    DataSourceBase.Attach(String, IDataStream)
    DataSourceBase.ProvideOut(Func<IEnumerable<IEntity>>, String)
    DataSourceBase.ProvideOut(Func<IImmutableList<IEntity>>, String)
    Namespace: ToSic.Eav.DataSources
    Assembly: ToSic.Eav.DataSources.dll
    Syntax
    [VisualQuery(NiceName = "Parents", UiHint = "Get the item's parents", Icon = "family_restroom", Type = DataSourceType.Lookup, NameId = "915217e5-7957-4303-a19c-a15505f2ad1d", In = new string[]{"Default*"}, DynamicOut = false, ConfigurationType = "a72cb2f4-52bb-41e6-9281-10e69aeb0310", HelpLink = "https://r.2sxc.org/DsParents")]
    [InternalApi_DoNotUse_MayChangeWithoutNotice("WIP")]
    public class Parents : RelationshipDataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
    Remarks
    • Added in v12.10
    • Changed in v15.05 to use the immutable convention

    Constructors

    | Improve this Doc View Source

    Parents(DataSourceBase.MyServices)

    Declaration
    public Parents(DataSourceBase.MyServices services)
    Parameters
    Type Name Description
    ToSic.Eav.DataSource.DataSourceBase.MyServices services

    Properties

    | Improve this Doc View Source

    ContentTypeName

    Name of the content-type to get. Will only get parents of the specified type.

    Example: If a person is referenced by books (as author) as by companies) as employee, then you may want to only find companies referencing this book.

    Declaration
    public override string ContentTypeName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    ToSic.Eav.DataSources.RelationshipDataSourceBase.ContentTypeName
    | Improve this Doc View Source

    FieldName

    Name of the field (in the parent) pointing to the child. If left blank, will use get all children.

    Example: If a person is referenced by books as both Author and Illustrator then leaving this empty will get both relationships, but specifying Author will only get this person if it's the author.

    Declaration
    public override string FieldName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    ToSic.Eav.DataSources.RelationshipDataSourceBase.FieldName

    Implements

    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX