Table of Contents

Class Attributes

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 = "Attributes of Type", UiHint = "Attributes/fields of a Content-Type", Icon = "dns", Type = DataSourceType.System, NameId = "ToSic.Eav.DataSources.System.Attributes, ToSic.Eav.DataSources", Audience = Audience.Advanced, DynamicOut = false, ConfigurationType = "5461d34d-7dc6-4d38-9250-a0729cc8ead3", HelpLink = "https://github.com/2sic/2sxc/wiki/DotNet-DataSource-Attributes")]
public sealed class Attributes : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
Attributes
Implements
Inherited Members

Remarks

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

Constructors

Attributes(IAppStates, MyServices, IDataFactory)

Constructs a new Attributes DS

public Attributes(IAppStates appStates, DataSourceBase.MyServices services, IDataFactory dataFactory)

Parameters

appStates IAppStates
services DataSourceBase.MyServices
dataFactory IDataFactory

Properties

ContentTypeName

The content-type name

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

Property Value

string