IData ApiGet Schema Method
Load schema of a Data Source by name.
This is useful for get data schema of a data source.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
A list of DataSourceField of data source
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
IList<DataSourceField> GetSchema(
string dataSourceName
)Parameters
- dataSourceName String
- The Data Source name
Return Value
IListDataSourceFieldA 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);