Table of Contents

Class QueryRun

Namespace
ToSic.Eav.DataSources
Assembly
ToSic.Eav.DataSources.dll

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

[PublicApi]
[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://go.2sxc.org/QueryRun")]
public class QueryRun : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
ServiceBase
QueryRun
Implements
Inherited Members

Properties

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.

public override IReadOnlyDictionary<string, IDataStream> Out { get; }

Property Value

IReadOnlyDictionary<string, IDataStream>

A dictionary of named IDataStream objects, case insensitive