Table of Contents

Class QueryInfo

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

The base class for all DataSources, especially custom DataSources. It must always be inherited. It provides a lot of core functionality to get configurations, ensure caching and more.

Important: in most cases you will inherit the CustomDataSource DataSource for custom data sources.

[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, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
ServiceBase
QueryInfo
Implements
Inherited Members

Remarks

Had a major, breaking update in v15. Consult the guide to upgrade your custom data sources.

Constructors

QueryInfo(MyServices, LazySvc<QueryManager>, QueryBuilder, IDataFactory, IDataSourceGenerator<Attributes>)

Constructs a new Attributes DS

public QueryInfo(DataSourceBase.MyServices services, LazySvc<QueryManager> queryManager, QueryBuilder queryBuilder, IDataFactory dataFactory, IDataSourceGenerator<Attributes> attributesGenerator)

Parameters

services DataSourceBase.MyServices
queryManager LazySvc<QueryManager>
queryBuilder QueryBuilder
dataFactory IDataFactory
attributesGenerator IDataSourceGenerator<Attributes>

Properties

QueryBuilder

public QueryBuilder QueryBuilder { get; }

Property Value

QueryBuilder

QueryName

The content-type name

[Configuration(Fallback = "not-configured")]
public string QueryName { get; }

Property Value

string

StreamName

[Configuration(Fallback = "Default")]
public string StreamName { get; }

Property Value

string