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.1.0
Syntax
C#
IList<DataSourceField> GetSchema(
	string dataSourceName
)

Parameters

dataSourceName
Type: SystemString
The Data Source name

Return Value

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