Key Key Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class Key : ConventionalAnnotatable, IMutableKey, IMutableAnnotatable, IKey, IAnnotatable
Public Class Key
    Inherits ConventionalAnnotatable
    Implements IMutableKey, IMutableAnnotatable, IKey, IAnnotatable
Inheritance
Implements

Constructors

Key(IReadOnlyList, ConfigurationSource) Key(IReadOnlyList(Of Property), ConfigurationSource)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public Key(IReadOnlyList<Property> properties, ConfigurationSource configurationSource)
Public Sub New(properties As IReadOnlyList(Of  Property), configurationSource As ConfigurationSource)
Parameters
properties
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)

Properties

Builder Builder

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalKeyBuilder Builder { get; set; }
Public Overridable Property Builder As InternalKeyBuilder

DebugView DebugView

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual DebugView<Key> DebugView { get; }
Public Overridable ReadOnly Property DebugView As DebugView(Of Key)
Value
DebugView<Key> DebugView(Of Key)

DeclaringEntityType DeclaringEntityType

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual EntityType DeclaringEntityType { get; }
Public Overridable ReadOnly Property DeclaringEntityType As EntityType

IdentityMapFactory IdentityMapFactory

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Func<IIdentityMap> IdentityMapFactory { get; }
Public Overridable ReadOnly Property IdentityMapFactory As Func(Of IIdentityMap)
Value
System.Func<IIdentityMap> System.Func(Of IIdentityMap)

Item[String] Item(String)

Gets the value annotation with the given name, returning null if it does not exist.

(Inherited from Annotatable)

Properties Properties

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IReadOnlyList<Property> Properties { get; }
Public Overridable ReadOnly Property Properties As IReadOnlyList(Of  Property)
Value
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)

ReferencingForeignKeys ReferencingForeignKeys

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual ISet<ForeignKey> ReferencingForeignKeys { get; set; }
Public Overridable Property ReferencingForeignKeys As ISet(Of ForeignKey)
Value
ISet<ForeignKey> ISet(Of ForeignKey)

WeakReferenceIdentityMapFactory WeakReferenceIdentityMapFactory

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual Func<IWeakReferenceIdentityMap> WeakReferenceIdentityMapFactory { get; }
Public Overridable ReadOnly Property WeakReferenceIdentityMapFactory As Func(Of IWeakReferenceIdentityMap)
Value
System.Func<IWeakReferenceIdentityMap> System.Func(Of IWeakReferenceIdentityMap)

Methods

AddAnnotation(String, Annotation) AddAnnotation(String, Annotation)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from Annotatable)

AddAnnotation(String, Object) AddAnnotation(String, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

AddAnnotation(String, Object, ConfigurationSource) AddAnnotation(String, Object, ConfigurationSource)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

CreateAnnotation(String, Object) CreateAnnotation(String, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

FindAnnotation(String) FindAnnotation(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

GetAnnotations() GetAnnotations()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

GetConfigurationSource() GetConfigurationSource()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual ConfigurationSource GetConfigurationSource()
Public Overridable Function GetConfigurationSource As ConfigurationSource
Returns

GetHashCode() GetHashCode()

Inherited from System.Object

GetOrAddAnnotation(String, Object) GetOrAddAnnotation(String, Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

GetPrincipalKeyValueFactory() GetPrincipalKeyValueFactory(Of TKey)()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IPrincipalKeyValueFactory<TKey> GetPrincipalKeyValueFactory<TKey>()
Public Overridable Function GetPrincipalKeyValueFactory(Of TKey) As IPrincipalKeyValueFactory(Of TKey)
Type Parameters
TKey
Returns

GetReferencingForeignKeys() GetReferencingForeignKeys()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual IEnumerable<ForeignKey> GetReferencingForeignKeys()
Public Overridable Function GetReferencingForeignKeys As IEnumerable(Of ForeignKey)
Returns
System.Collections.Generic.IEnumerable<ForeignKey> System.Collections.Generic.IEnumerable(Of ForeignKey)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

OnAnnotationSet(String, Annotation, Annotation) OnAnnotationSet(String, Annotation, Annotation)

Runs the corresponding conventions when an annotation was set or removed.

(Inherited from Annotatable)

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

RemoveAnnotation(String) RemoveAnnotation(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

SetAnnotation(String, Annotation) SetAnnotation(String, Annotation)

Sets the annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from Annotatable)

SetAnnotation(String, Object, ConfigurationSource) SetAnnotation(String, Object, ConfigurationSource)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

(Inherited from ConventionalAnnotatable)

ToString() ToString()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override string ToString()
Public Overrides Function ToString As String
Returns
System.String System.String
Overrides
System.Object.ToString()System.Object.ToString()

UpdateConfigurationSource(ConfigurationSource) UpdateConfigurationSource(ConfigurationSource)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual void UpdateConfigurationSource(ConfigurationSource configurationSource)
Public Overridable Sub UpdateConfigurationSource(configurationSource As ConfigurationSource)
Parameters

Explicit Interface Implementations

IAnnotatable.FindAnnotation(String) Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from Annotatable)

IAnnotatable.GetAnnotations() Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable.GetAnnotations()

Gets all annotations on the current object.

(Inherited from Annotatable)

IKey.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.IKey.DeclaringEntityType

IEntityType IKey.DeclaringEntityType { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IKey.DeclaringEntityType As IEntityType Implements IKey.DeclaringEntityType
Returns

IKey.Properties Microsoft.EntityFrameworkCore.Metadata.IKey.Properties

IReadOnlyList<IProperty> IKey.Properties { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IKey.Properties As IReadOnlyList(Of IProperty) Implements IKey.Properties
Returns
System.Collections.Generic.IReadOnlyList<IProperty> System.Collections.Generic.IReadOnlyList(Of IProperty)

IMutableKey.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.IMutableKey.DeclaringEntityType

IMutableEntityType IMutableKey.DeclaringEntityType { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IMutableKey.DeclaringEntityType As IMutableEntityType Implements IMutableKey.DeclaringEntityType
Returns

IMutableKey.Properties Microsoft.EntityFrameworkCore.Metadata.IMutableKey.Properties

IReadOnlyList<IMutableProperty> IMutableKey.Properties { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IMutableKey.Properties As IReadOnlyList(Of IMutableProperty) Implements IMutableKey.Properties
Returns
System.Collections.Generic.IReadOnlyList<IMutableProperty> System.Collections.Generic.IReadOnlyList(Of IMutableProperty)