IConventionEntityTypeBuilder.HasNoIndex 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
HasNoIndex(IConventionIndex, Boolean) |
Removes an index from this entity type. |
HasNoIndex(IReadOnlyList<IConventionProperty>, Boolean) |
Removes an index from this entity type. |
HasNoIndex(IConventionIndex, Boolean)
Removes an index from this entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, bool fromDataAnnotation = false);
abstract member HasNoIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoIndex (index As IConventionIndex, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parameters
- index
- IConventionIndex
The index to remove.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the index was removed,
null
otherwise.
Applies to
HasNoIndex(IReadOnlyList<IConventionProperty>, Boolean)
Removes an index from this entity type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
abstract member HasNoIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoIndex (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parameters
- properties
- IReadOnlyList<IConventionProperty>
The properties that make up the index.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the index was removed or didn't exist,
null
otherwise.
Applies to
Entity Framework