Class Attributes
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.
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources.Sys
Assembly: ToSic.Eav.DataSources.dll
Syntax
[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
Remarks
Had a major, breaking update in v15. Consult the guide to upgrade your custom data sources.
Constructors
| Improve this Doc View SourceAttributes(IAppStates, MyServices, IDataFactory)
Constructs a new Attributes DS
Declaration
public Attributes(IAppStates appStates, DataSourceBase.MyServices services, IDataFactory dataFactory)
Parameters
Type | Name | Description |
---|---|---|
IAppStates | appStates | |
DataSourceBase.MyServices | services | |
IDataFactory | dataFactory |
Properties
| Improve this Doc View SourceContentTypeName
The content-type name
Declaration
[Configuration(Fallback = "not-configured-try-in")]
public string ContentTypeName { get; }
Property Value
Type | Description |
---|---|
string |