Table of Contents

Class OData

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

DataSource which applies OData system query options ($filter, $orderby, $top, $skip, $select) to the upstream stream. It parses a raw OData query string and builds the corresponding ValueFilter/ValueSort pipeline.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
[VisualQuery(NiceName = "OData", UiHint = "Filter and sort using OData options like $filter, $orderby, $top, $skip", Icon = "filter_list", Type = DataSourceType.Filter, NameId = "ToSic.Eav.DataSources.OData, ToSic.Eav.DataSources", In = new string[] { "Default*" }, DynamicOut = false, Audience = Audience.Advanced, ConfigurationType = "|Config ToSic.Eav.DataSources.EntityIdFilter", HelpLink = "https://go.2sxc.org/DsOData")]
public sealed class OData : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
OData
Implements
Inherited Members

Constructors

OData(Dependencies, LazySvc<IDataSourcesService>)

public OData(DataSourceBase.Dependencies parentServices, LazySvc<IDataSourcesService> dataSourceFactory)

Parameters

parentServices DataSourceBase.Dependencies
dataSourceFactory LazySvc<IDataSourcesService>

Properties

ODataQueryString

[Configuration(Field = "EntityIds")]
public string? ODataQueryString { get; set; }

Property Value

string