Table of Contents

Class DataTable

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

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.

[PublicApi]
public class DataTable : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
object
ServiceBase
DataTable
Implements
Inherited Members

Properties

ContentType

Name of the ContentType. Defaults to Data

[Configuration(Fallback = "Data")]
public string ContentType { get; set; }

Property Value

string

Remarks

  • in v15 changed default name to Data, previously was just empty.

EntityIdField

Name of the Column used as EntityId

[Configuration(Fallback = "entityid")]
public string EntityIdField { get; set; }

Property Value

string

ModifiedField

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

[Configuration]
public string ModifiedField { get; set; }

Property Value

string

Source

Source DataTable

public DataTable Source { get; set; }

Property Value

DataTable

TitleField

Name of the Title Attribute of the Source DataTable

[Configuration(Fallback = "entitytitle")]
public string TitleField { get; set; }

Property Value

string