IndexConfiguration.IsUnique Method

Definition

Overloads

IsUnique()

Configures the index to be unique.

IsUnique(Boolean)

Configures whether the index will be unique.

IsUnique()

Configures the index to be unique.

public System.Data.Entity.ModelConfiguration.Configuration.IndexConfiguration IsUnique ();
member this.IsUnique : unit -> System.Data.Entity.ModelConfiguration.Configuration.IndexConfiguration
Public Function IsUnique () As IndexConfiguration

Returns

The same IndexConfiguration instance so that multiple calls can be chained.

Applies to

IsUnique(Boolean)

Configures whether the index will be unique.

public System.Data.Entity.ModelConfiguration.Configuration.IndexConfiguration IsUnique (bool unique);
member this.IsUnique : bool -> System.Data.Entity.ModelConfiguration.Configuration.IndexConfiguration
Public Function IsUnique (unique As Boolean) As IndexConfiguration

Parameters

unique
Boolean

Value indicating if the index should be unique or not.

Returns

The same IndexConfiguration instance so that multiple calls can be chained.

Applies to