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

    Show / Hide Table of Contents

    Class QueryRun

    Run another query and provide the resulting data. The settings will provide the params for the inner query.

    The QueryRun DataSource is part of the Standard EAV Data Sources.

    It will run another query and give it parameters if needed.

    Read more about it here: Sub-Queries: Re-Use Queries in Other Queries

    How to use with the VisualQuery

    When using the VisualQuery you can just drag it into your query and set the parameters.

    History

    1. Introduced in 2sxc 10.24

    API Documentation

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
    DataSourceBase
    QueryRun
    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.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
    [PublicApi_Stable_ForUseInYourCode]
    [VisualQuery(NiceName = "Query Run", UiHint = "Get data from another Query", Icon = "launch", Type = DataSourceType.Source, NameId = "ToSic.Eav.DataSources.QueryRun, ToSic.Eav.DataSources", DynamicOut = true, ConfigurationType = "78d25ea6-66cc-44a2-b45d-77749cd9420a", HelpLink = "https://r.2sxc.org/QueryRun")]
    public class QueryRun : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable

    Properties

    | Improve this Doc View Source

    Out

    Gets the Dictionary of Out-Streams. This is the internal accessor, as usually you'll use this["name"] instead.
    In rare cases you need the Out, for example to list the stream names in the data source.

    Declaration
    public override IReadOnlyDictionary<string, IDataStream> Out { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<System.String, IDataStream>

    A dictionary of named IDataStream objects, case insensitive

    Overrides
    DataSourceBase.Out

    Implements

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