Load schema of a Data Source by name.
This is useful for get data schema of a data source.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
SyntaxIList<DataSourceField> GetSchema(
string dataSourceName
)
Parameters
- dataSourceName String
- The Data Source name
Return Value
IListDataSourceFieldA list of DataSourceField of data source
Examplevar dataApi = ctx.Use<IDataApi>();
var emplyeeSchema = dataApi.GetSchema("Employee");
Log.Info("This is schema {emplyeeSchema} of the Employee", emplyeeSchema);
See Also