• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API
v16
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ServiceBase
    ServiceBase<DataSourceBase.MyServices>
    DataSourceBase
    Attributes
    Implements
    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    Inherited Members
    DataSourceBase.Immutable
    DataSourceBase.AppId
    DataSourceBase.ZoneId
    DataSourceBase.Guid
    DataSourceBase.Error
    DataSourceBase.CacheTimestamp
    DataSourceBase.CacheChanged(long)
    DataSourceBase.Configuration
    DataSourceBase.Link
    DataSourceBase.In
    DataSourceBase.Out
    DataSourceBase.this[string]
    DataSourceBase.GetStream(string, string, bool, bool)
    DataSourceBase.List
    DataSourceBase.Attach(IDataSource)
    DataSourceBase.Attach(string, IDataSource, string)
    DataSourceBase.Attach(string, IDataStream)
    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 Source

    Attributes(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 Source

    ContentTypeName

    The content-type name

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

    Implements

    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX