• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Class DataTable

    Provide Entities from a System.Data.DataTable.
    This is not meant for VisualQuery, but for code which pre-processes data in a DataTable and then wants to provide it as entities.

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
    DataSourceBase
    ToSic.Eav.DataSource.CustomDataSourceAdvanced
    DataTable
    Implements
    IDataSource
    IAppIdentity
    IZoneIdentity
    IAppIdentityLight
    ICacheKey
    ICacheExpiring
    ITimestamped
    IHasLog
    IDataSourceLinkable
    Inherited Members
    DataSourceBase.AppId
    DataSourceBase.ZoneId
    DataSourceBase.Guid
    DataSourceBase.Error
    DataSourceBase.CacheTimestamp
    DataSourceBase.CacheChanged(Int64)
    DataSourceBase.Configuration
    DataSourceBase.Link
    DataSourceBase.In
    DataSourceBase.TryGetIn(String)
    DataSourceBase.TryGetOut(String)
    DataSourceBase.Out
    DataSourceBase.Item[String]
    DataSourceBase.GetStream(String, String, Boolean, Boolean)
    DataSourceBase.List
    DataSourceBase.Attach(IDataSource)
    DataSourceBase.Attach(String, IDataSource, String)
    DataSourceBase.Attach(String, IDataStream)
    DataSourceBase.ProvideOut(Func<IEnumerable<IEntity>>, String)
    DataSourceBase.ProvideOut(Func<IImmutableList<IEntity>>, String)
    Namespace: ToSic.Eav.DataSources
    Assembly: ToSic.Eav.DataSources.dll
    Syntax
    [PublicApi_Stable_ForUseInYourCode]
    public class DataTable : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
    Remarks

    Technically many things could just identify the app they belong to, and let the system look up the zone. But this would be inefficient, so for optimization, many items identify themselves with both the app and zone Ids

    Properties

    | Improve this Doc View Source

    ContentType

    Name of the ContentType. Defaults to Data

    Declaration
    [Configuration(Fallback = "Data")]
    public string ContentType { get; set; }
    Property Value
    Type Description
    System.String
    Remarks
    • in v15 changed default name to Data, previously was just empty.
    | Improve this Doc View Source

    EntityIdField

    Name of the Column used as EntityId

    Declaration
    [Configuration(Fallback = "entityid")]
    public string EntityIdField { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ModifiedField

    Name of the field which would contain a modified timestamp (date/time)

    Declaration
    [Configuration]
    public string ModifiedField { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Source

    Source DataTable

    Declaration
    public DataTable Source { get; set; }
    Property Value
    Type Description
    System.Data.DataTable
    | Improve this Doc View Source

    TitleField

    Name of the Title Attribute of the Source DataTable

    Declaration
    [Configuration(Fallback = "entitytitle")]
    public string TitleField { get; set; }
    Property Value
    Type Description
    System.String

    Implements

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