Interface ICreateIndexOptionsBuilder
Provides a builder interface for specifying options when creating an index as part of a database migration.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Index
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateIndexOptionsBuilder : IFluentBuilder
Methods
View SourceClustered()
Marks the index as clustered.
Declaration
ICreateIndexOnColumnBuilder Clustered()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | The ICreateIndexOnColumnBuilder instance for further index configuration. |
NonClustered()
Specifies that the index should be created as non-clustered.
Declaration
ICreateIndexOnColumnBuilder NonClustered()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | An ICreateIndexOnColumnBuilder to specify the columns for the index. |
Unique()
Specifies that the index to be created should enforce uniqueness.
Declaration
ICreateIndexOnColumnBuilder Unique()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | An ICreateIndexOnColumnBuilder to continue building the index. |