IIndex IIndex Interface

Represents an index on a set of properties.

Syntax

Declaration

public interface IIndex : IAnnotatablePublic Interface IIndex
    Inherits IAnnotatable

Inherited Members

Item[String],
Item(String),
FindAnnotation(String),
FindAnnotation(String),
GetAnnotations()
GetAnnotations()

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 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).

    IEntityType DeclaringEntityType { get; }ReadOnly Property DeclaringEntityType As IEntityType

    Property Value

  • IsUnique
    IsUnique

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

    bool IsUnique { get; }ReadOnly Property IsUnique As Boolean

    Property Value

    • System.Boolean
      System.Boolean
  • Properties
    Properties

    Gets the properties that this index is defined on.

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

    Property Value

    • System.Collections.Generic.IReadOnlyList<T><IProperty>
      System.Collections.Generic.IReadOnlyList<T>(Of IProperty)

Details

Assembly

Microsoft.EntityFrameworkCore.dll