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 = "35d51935-8ac4-42fa-87ac-b10c04d73181", NameIds = new string[] { "ToSic.Eav.DataSources.System.QueryInfo, ToSic.Eav.DataSources" }, Audience = Audience.Advanced, ConfigurationType = "4638668f-d506-4f5c-ae37-aa7fdbbb5540", HelpLink = "https://docs.2sxc.org/api/dot-net/ToSic.Eav.DataSources.System.QueryInfo.html")]
public sealed class QueryInfo : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
- Inheritance
-
objectQueryInfo
- Implements
- Inherited Members
Remarks
Had a major, breaking update in v15. Consult the guide to upgrade your custom data sources.
Constructors
QueryInfo(Dependencies, LazySvc<QueryDefinitionService>, QueryFactory, IDataSourceGenerator<Attributes>)
Constructs a new Attributes DS
public QueryInfo(CustomDataSourceAdvanced.Dependencies services, LazySvc<QueryDefinitionService> queryDefSvc, QueryFactory queryFactory, IDataSourceGenerator<Attributes> attributesGenerator)
Parameters
servicesCustomDataSourceAdvanced.DependenciesqueryDefSvcLazySvc<QueryDefinitionService>queryFactoryQueryFactoryattributesGeneratorIDataSourceGenerator<Attributes>
Properties
QueryName
The content-type name
[Configuration(Fallback = "not-configured")]
public string QueryName { get; }
Property Value
StreamName
[Configuration(Fallback = "Default")]
public string StreamName { get; }