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>
ToSic.Eav.DataSource.CustomDataSourceAdvanced
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, 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 SourceContentType
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.
EntityIdField
Name of the Column used as EntityId
Declaration
[Configuration(Fallback = "entityid")]
public string EntityIdField { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
Source
Source DataTable
Declaration
public DataTable Source { get; set; }
Property Value
Type | Description |
---|---|
System.Data.DataTable |
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 |