Interface ICreateIndexColumnOptionsBuilder
Provides options for configuring a column when creating an index in a migration expression.
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Index
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface ICreateIndexColumnOptionsBuilder : IFluentBuilder
Methods
View SourceAscending()
Marks the index column to be sorted in ascending order.
Declaration
ICreateIndexOnColumnBuilder Ascending()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | The builder to continue configuring the index column. |
Descending()
Specifies that the index column should be sorted in descending order.
Declaration
ICreateIndexOnColumnBuilder Descending()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | The builder for configuring the index column. |
Unique()
Specifies that the index on this column should enforce uniqueness, ensuring that no duplicate values are allowed.
Declaration
ICreateIndexOnColumnBuilder Unique()
Returns
| Type | Description |
|---|---|
| ICreateIndexOnColumnBuilder | The builder instance for further index configuration. |