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
DataTable
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources
Assembly: ToSic.Eav.DataSources.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
public class DataTable : CustomDataSourceAdvanced, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Properties
| Improve this Doc View SourceContentType
Name of the ContentType. Defaults to Data
Declaration
[Configuration(Fallback = "Data")]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
- in v15 changed default name to
Data
, previously was just empty.
EntityIdField
Name of the Column used as EntityId
Declaration
[Configuration(Fallback = "entityid")]
public string EntityIdField { get; set; }
Property Value
Type | Description |
---|---|
string |
ModifiedField
Name of the field which would contain a modified timestamp (date/time)
Declaration
[Configuration]
public string ModifiedField { get; set; }
Property Value
Type | Description |
---|---|
string |
Source
Source DataTable
Declaration
public DataTable Source { get; set; }
Property Value
Type | Description |
---|---|
DataTable |
TitleField
Name of the Title Attribute of the Source DataTable
Declaration
[Configuration(Fallback = "entitytitle")]
public string TitleField { get; set; }
Property Value
Type | Description |
---|---|
string |