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<Property>, 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.

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.

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.

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.

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.

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.

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.

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.

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)
System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.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.

System.Object.GetHashCode() System.Object.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<TKey>() 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.

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.

System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.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)
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.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.

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.

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
IKey.Properties Microsoft.EntityFrameworkCore.Metadata.IKey.Properties
IMutableKey.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.IMutableKey.DeclaringEntityType
IMutableKey.Properties Microsoft.EntityFrameworkCore.Metadata.IMutableKey.Properties

Extension Methods

Microsoft.EntityFrameworkCore.SqlServerMetadataExtensions.SqlServer() Microsoft.EntityFrameworkCore.SqlServerMetadataExtensions.SqlServer()
Microsoft.EntityFrameworkCore.SqlServerMetadataExtensions.SqlServer() Microsoft.EntityFrameworkCore.SqlServerMetadataExtensions.SqlServer()
Microsoft.EntityFrameworkCore.KeyExtensions.GetReferencingForeignKeys() Microsoft.EntityFrameworkCore.KeyExtensions.GetReferencingForeignKeys()
Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.GetOrAddAnnotation(System.String, System.String) Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.GetOrAddAnnotation(System.String, System.String)
Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.AddAnnotations(System.Collections.Generic.IEnumerable<IAnnotation>) Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.AddAnnotations(System.Collections.Generic.IEnumerable(Of IAnnotation))
Microsoft.EntityFrameworkCore.MutableKeyExtensions.GetReferencingForeignKeys() Microsoft.EntityFrameworkCore.MutableKeyExtensions.GetReferencingForeignKeys()
Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableExtensions.GetAnnotation(System.String) Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableExtensions.GetAnnotation(System.String)
Microsoft.EntityFrameworkCore.Metadata.Internal.AnnotatableExtensions.AnnotationsToDebugString(System.String) Microsoft.EntityFrameworkCore.Metadata.Internal.AnnotatableExtensions.AnnotationsToDebugString(System.String)
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetIdentityMapFactory() Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetIdentityMapFactory()
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetWeakReferenceIdentityMapFactory() Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetWeakReferenceIdentityMapFactory()
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetPrincipalKeyValueFactory<TKey>() Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.GetPrincipalKeyValueFactory(Of TKey)()
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.IsPrimaryKey() Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.IsPrimaryKey()
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.ToDebugString(System.Boolean, System.String) Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.ToDebugString(System.Boolean, System.String)
Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.AsKey(System.String) Microsoft.EntityFrameworkCore.Metadata.Internal.KeyExtensions.AsKey(System.String)
Microsoft.EntityFrameworkCore.SqliteMetadataExtensions.Sqlite() Microsoft.EntityFrameworkCore.SqliteMetadataExtensions.Sqlite()
Microsoft.EntityFrameworkCore.SqliteMetadataExtensions.Sqlite() Microsoft.EntityFrameworkCore.SqliteMetadataExtensions.Sqlite()
Microsoft.EntityFrameworkCore.Relational.Tests.TestRelationalMetadataExtensions.TestProvider() Microsoft.EntityFrameworkCore.Relational.Tests.TestRelationalMetadataExtensions.TestProvider()
Microsoft.EntityFrameworkCore.RelationalMetadataExtensions.Relational() Microsoft.EntityFrameworkCore.RelationalMetadataExtensions.Relational()
Microsoft.EntityFrameworkCore.RelationalMetadataExtensions.Relational() Microsoft.EntityFrameworkCore.RelationalMetadataExtensions.Relational()