IMutableIndex IMutableIndex Interface

Represents an index on a set of properties.

This interface is used during model creation and allows the metadata to be modified. Once the model is built, IIndex represents a ready-only view of the same metadata.

Syntax

Declaration

public interface IMutableIndex : IIndex, IMutableAnnotatable, IAnnotatablePublic Interface IMutableIndex
    Inherits IIndex, IMutableAnnotatable

Inherited Members

Item[String],
Item(String),
GetAnnotations(),
GetAnnotations(),
AddAnnotation(String, Object),
AddAnnotation(String, Object),
FindAnnotation(String),
FindAnnotation(String),
RemoveAnnotation(String)
RemoveAnnotation(String)

Properties summary

Gets the entity type the index is defined on. This may be different from the type that Properties are defined on when the index is defined a derived type in an inheritance hierarchy (since the properties may be defined on a base type).

Gets or sets a value indicating whether the values assigned to the indexed properties are unique.

Gets the properties that this index is defined on.

Properties

  • DeclaringEntityType
    DeclaringEntityType

    Gets the entity type the index is defined on. This may be different from the type that Properties are defined on when the index is defined a derived type in an inheritance hierarchy (since the properties may be defined on a base type).

    IMutableEntityType DeclaringEntityType { get; }ReadOnly Property DeclaringEntityType As IMutableEntityType

    Property Value

  • IsUnique
    IsUnique

    Gets or sets a value indicating whether the values assigned to the indexed properties are unique.

    bool IsUnique { get; set; }Property IsUnique As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Properties
    Properties

    Gets the properties that this index is defined on.

    IReadOnlyList<IMutableProperty> Properties { get; }ReadOnly Property Properties As IReadOnlyList(Of IMutableProperty)

    Property Value

Details

Assembly

Microsoft.EntityFrameworkCore.dll