Skip to main content

Class JsonDataTableGenerator

The JsonDataTableGenerator class is used to efficiently parse and generate a DataTable from a Pandas JsonDataTable. This class offers a variety of methods to work in tandem with the DataTableBuilder class to generate a DataTable

Namespace: Workspace.XBR.Xperiflow.Utilities.AdoDataTable.Builder

Assembly: Xperiflow.dll

Declaration
public class JsonDataTableGenerator : IDataTableGenerator

Implements: Workspace.XBR.Xperiflow.Utilities.AdoDataTable.Builder.IDataTableGenerator

Methods​

ValidateJson(SessionInfo, JObject)​

Declaration
public void ValidateJson(SessionInfo si, JObject jsonObject)
Parameters​
TypeName
OneStream.Shared.Common.SessionInfosi
Newtonsoft.Json.Linq.JObjectjsonObject

CreateColumns(SessionInfo, JArray)​

Declaration
public List<DataColumn> CreateColumns(SessionInfo si, JArray jsonSchemaFields)
Returns​

System.Collections.Generic.List<System.Data.DataColumn>

Parameters​
TypeName
OneStream.Shared.Common.SessionInfosi
Newtonsoft.Json.Linq.JArrayjsonSchemaFields

CreateColumns(SessionInfo)​

Specifies the list of data columns to be created for the DataRows.

Declaration
public List<DataColumn> CreateColumns(SessionInfo si)
Returns​

System.Collections.Generic.List<System.Data.DataColumn>

Parameters​
TypeName
OneStream.Shared.Common.SessionInfosi

GenerateDataRows(SessionInfo, DataTable)​

Generates DataRows that abide by the Column Index locations of the provided DataTable.

Note: Do not append the DataRows to the DataTable. DataTableBuilder will do that for you.

Declaration
public IEnumerable<DataRow> GenerateDataRows(SessionInfo si, DataTable dt)
Returns​

System.Collections.Generic.IEnumerable<System.Data.DataRow>

Parameters​
TypeName
OneStream.Shared.Common.SessionInfosi
System.Data.DataTabledt

Implements​

Inherited Members​

  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.ToString

Was this page helpful?