IDataEnricherApiCreateIndex Method
|
Create an index for attributes of data class.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxvoid CreateIndex(
string dataClassName,
DslIndexDefinition indexDefinition
)
Parameters
- dataClassName String
- Data class name by user defined
- indexDefinition DslIndexDefinition
- Index information
Examplevar dataClassName = "Company";
var indexDefinition = new DslIndexDefinition()
{
Name= "CompanyName",
Keys = new List<DslIndexKeyDefinition>()
{
new DslIndexKeyDefinition(name: "CompanyName", indexType: 1)
}
};
var dataEnricherApi = ctx.Use<IDataEnricherApi>();
dataEnricherApi.CreateIndex(dataClassName, indexDefinition);
See Also