Class RuntimeIndex
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an index on a set of properties.
public class RuntimeIndex : AnnotatableBase, IIndex, IReadOnlyIndex, IAnnotatable, IReadOnlyAnnotatable
- Inheritance
-
RuntimeIndex
- Implements
- Inherited Members
Remarks
See Modeling entity types and relationships for more information and examples.
Constructors
RuntimeIndex(IReadOnlyList<RuntimeProperty>, RuntimeEntityType, string?, bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[EntityFrameworkInternal]
public RuntimeIndex(IReadOnlyList<RuntimeProperty> properties, RuntimeEntityType declaringEntityType, string? name, bool unique)
Parameters
properties
IReadOnlyList<RuntimeProperty>declaringEntityType
RuntimeEntityTypename
stringunique
bool
Properties
DebugView
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[EntityFrameworkInternal]
public virtual DebugView DebugView { get; }
Property Value
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).
public virtual RuntimeEntityType DeclaringEntityType { get; }
Property Value
Name
Gets the name of this index.
public virtual string? Name { get; }
Property Value
Properties
Gets the properties that this index is defined on.
public virtual IReadOnlyList<RuntimeProperty> Properties { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.