IData Enricher ApiCreate Index Method
Create an index for attributes of data class.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
void CreateIndex(
string dataClassName,
DslIndexDefinition indexDefinition
)Parameters
- dataClassName String
- Data class name by user defined
- indexDefinition DslIndexDefinition
- Index information
Example
C#
var dataClassName = "Company";
var indexDefinition = new DslIndexDefinition()
{
Name= "CompanyName", //User define
Keys = new List<DslIndexKeyDefinition>()
{
new DslIndexKeyDefinition(name: "CompanyName", indexType: 1)
}
};
var dataEnricherApi = ctx.Use<IDataEnricherApi>();
dataEnricherApi.CreateIndex(dataClassName, indexDefinition);