IMutableEntityType.AddIndex 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
AddIndex(IMutableProperty) |
Adds an unnamed index to this entity type. |
AddIndex(IReadOnlyList<IMutableProperty>) |
Adds an unnamed index to this entity type. |
AddIndex(IMutableProperty, String) |
Adds a named index to this entity type. |
AddIndex(IReadOnlyList<IMutableProperty>, String) |
Adds a named index to this entity type. |
AddIndex(IMutableProperty)
Adds an unnamed index to this entity type.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty) As IMutableIndex
Parameters
- property
- IMutableProperty
The property to be indexed.
Returns
The newly created index.
Applies to
AddIndex(IReadOnlyList<IMutableProperty>)
Adds an unnamed index to this entity type.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex
Parameters
- properties
- IReadOnlyList<IMutableProperty>
The properties that are to be indexed.
Returns
The newly created index.
Applies to
AddIndex(IMutableProperty, String)
Adds a named index to this entity type.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string name);
abstract member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
override this.AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Overridable Function AddIndex (property As IMutableProperty, name As String) As IMutableIndex
Parameters
- property
- IMutableProperty
The property to be indexed.
- name
- String
The name of the index.
Returns
The newly created index.
Applies to
AddIndex(IReadOnlyList<IMutableProperty>, String)
Adds a named index to this entity type.
public Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, string name);
abstract member AddIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
Public Function AddIndex (properties As IReadOnlyList(Of IMutableProperty), name As String) As IMutableIndex
Parameters
- properties
- IReadOnlyList<IMutableProperty>
The properties that are to be indexed.
- name
- String
The name of the index.
Returns
The newly created index.
Applies to
Entity Framework