Class QueryInfo
A DataSource that returns infos about a query.
For example, it says how many out-streams are available and what fields can be used on each stream.
This is used in fields which let you pick a query, stream and field from that stream.
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
QueryInfo
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources.Sys
Assembly: ToSic.Eav.DataSources.dll
Syntax
[InternalApi_DoNotUse_MayChangeWithoutNotice]
[VisualQuery(NiceName = "DataSources", UiHint = "List the DataSources available in the system", Icon = "present_to_all", Type = DataSourceType.System, NameId = "ToSic.Eav.DataSources.System.QueryInfo, ToSic.Eav.DataSources", Audience = Audience.Advanced, DynamicOut = false, ConfigurationType = "4638668f-d506-4f5c-ae37-aa7fdbbb5540", HelpLink = "https://docs.2sxc.org/api/dot-net/ToSic.Eav.DataSources.System.QueryInfo.html")]
public sealed class QueryInfo : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
Remarks
- Changed in v15.05 to use the immutable convention
Constructors
| Improve this Doc View SourceQueryInfo(DataSourceBase.MyServices, LazySvc<QueryManager>, QueryBuilder, IDataFactory, IDataSourceGenerator<Attributes>)
Constructs a new Attributes DS
Declaration
public QueryInfo(DataSourceBase.MyServices services, LazySvc<QueryManager> queryManagerLazy, QueryBuilder queryBuilder, IDataFactory dataFactory, IDataSourceGenerator<Attributes> attributesGenerator)
Parameters
Type | Name | Description |
---|---|---|
ToSic.Eav.DataSource.DataSourceBase.MyServices | services | |
LazySvc<ToSic.Eav.DataSource.Query.QueryManager> | queryManagerLazy | |
ToSic.Eav.DataSource.Query.QueryBuilder | queryBuilder | |
IDataFactory | dataFactory | |
IDataSourceGenerator<Attributes> | attributesGenerator |
Properties
| Improve this Doc View SourceQueryBuilder
Declaration
public QueryBuilder QueryBuilder { get; }
Property Value
Type | Description |
---|---|
ToSic.Eav.DataSource.Query.QueryBuilder |
QueryName
The content-type name
Declaration
[Configuration(Fallback = "not-configured")]
public string QueryName { get; }
Property Value
Type | Description |
---|---|
System.String |
StreamName
Declaration
[Configuration(Fallback = "Default")]
public string StreamName { get; }
Property Value
Type | Description |
---|---|
System.String |