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
- Introduced in 2sxc 10.24
API Documentation
Implements
Inherited Members
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://go.2sxc.org/QueryRun")]
public class QueryRun : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Properties
| Improve this Doc View SourceOut
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 |
---|---|
IReadOnlyDictionary<string, IDataStream> | A dictionary of named IDataStream objects, case insensitive |