IndexConfiguration.IsUnique Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework