Interface ITableIndex
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Represents a table index.
public interface ITableIndex : IAnnotatable, IReadOnlyAnnotatable
Remarks
See Indexes for more information and examples.
Properties
Columns
Gets the columns that are participating in the index.
IReadOnlyList<IColumn> Columns { get; }
Property Value
Filter
Gets the expression used as the index filter.
string? Filter { get; }
Property Value
IsDescending
A set of values indicating whether each corresponding index column has descending sort order.
IReadOnlyList<bool>? IsDescending { get; }
Property Value
IsUnique
Gets a value indicating whether the index enforces uniqueness.
bool IsUnique { get; }
Property Value
MappedIndexes
Gets the mapped indexes.
IEnumerable<IIndex> MappedIndexes { get; }
Property Value
- IEnumerable<IIndex>
Name
Gets the name of the index.
string Name { get; }
Property Value
Table
Gets the table on with the index is declared.
ITable Table { get; }
Property Value
Methods
ToDebugString(MetadataDebugStringOptions, int)
Creates a human-readable representation of the given metadata.
Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.
string ToDebugString(MetadataDebugStringOptions options = 0, int indent = 0)
Parameters
options
MetadataDebugStringOptionsOptions for generating the string.
indent
intThe number of indent spaces to use before each new line.
Returns
- string
A human-readable representation.