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
public class JsonDataTableGenerator : IDataTableGenerator
Implements: Workspace.XBR.Xperiflow.Utilities.AdoDataTable.Builder.IDataTableGenerator
Methods
ValidateJson(SessionInfo, JObject)
public void ValidateJson(SessionInfo si, JObject jsonObject)
Parameters
Type | Name |
---|---|
OneStream.Shared.Common.SessionInfo | si |
Newtonsoft.Json.Linq.JObject | jsonObject |
CreateColumns(SessionInfo, JArray)
public List<DataColumn> CreateColumns(SessionInfo si, JArray jsonSchemaFields)
Returns
System.Collections.Generic.List<System.Data.DataColumn>
Parameters
Type | Name |
---|---|
OneStream.Shared.Common.SessionInfo | si |
Newtonsoft.Json.Linq.JArray | jsonSchemaFields |
CreateColumns(SessionInfo)
Specifies the list of data columns to be created for the DataRows.
public List<DataColumn> CreateColumns(SessionInfo si)
Returns
System.Collections.Generic.List<System.Data.DataColumn>
Parameters
Type | Name |
---|---|
OneStream.Shared.Common.SessionInfo | si |
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.
public IEnumerable<DataRow> GenerateDataRows(SessionInfo si, DataTable dt)
Returns
System.Collections.Generic.IEnumerable<System.Data.DataRow>
Parameters
Type | Name |
---|---|
OneStream.Shared.Common.SessionInfo | si |
System.Data.DataTable | dt |
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