Click or drag to resize

IDataApiGetSchema Method

Load schema of a Data Source by name. This is useful for get data schema of a data source.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
IList<DataSourceField> GetSchema(
	string dataSourceName
)

Parameters

dataSourceName  String
The Data Source name

Return Value

IListDataSourceField
A list of DataSourceField of data source
Example
C#
var dataApi = ctx.Use<IDataApi>();
var emplyeeSchema = dataApi.GetSchema("Employee");
Log.Info("This is schema {emplyeeSchema} of the Employee", emplyeeSchema);
See Also