Navigation Navigation 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 Navigation : PropertyBase, IMutableNavigation, INavigation, IMutablePropertyBase, IPropertyBase, IMutableAnnotatable, IAnnotatable
Public Class Navigation
    Inherits PropertyBase
    Implements IMutableNavigation, INavigation, IMutablePropertyBase, IPropertyBase, IMutableAnnotatable, IAnnotatable
Inheritance
Implements

Constructors

Navigation(String, PropertyInfo, FieldInfo, ForeignKey) Navigation(String, PropertyInfo, FieldInfo, ForeignKey)

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 Navigation(string name, PropertyInfo propertyInfo, FieldInfo fieldInfo, ForeignKey foreignKey)
Public Sub New(name As String, propertyInfo As PropertyInfo, fieldInfo As FieldInfo, foreignKey As ForeignKey)
Parameters
name
System.String System.String
propertyInfo
System.Reflection.PropertyInfo System.Reflection.PropertyInfo
fieldInfo
System.Reflection.FieldInfo System.Reflection.FieldInfo
foreignKey
ForeignKey ForeignKey

Properties

Accessors Accessors

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

ClrType ClrType

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 Type ClrType { get; }
Public Overrides ReadOnly Property ClrType As Type
Value
System.Type System.Type
Overrides

CollectionAccessor CollectionAccessor

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 IClrCollectionAccessor CollectionAccessor { get; }
Public Overridable ReadOnly Property CollectionAccessor As IClrCollectionAccessor

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<Navigation> DebugView { get; }
Public Overridable ReadOnly Property DebugView As DebugView(Of Navigation)

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

DeclaringType DeclaringType

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 DeclaringType { get; }
Public Overridable ReadOnly Property DeclaringType As EntityType

FieldInfo FieldInfo

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

ForeignKey ForeignKey

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 ForeignKey ForeignKey { get; }
Public Overridable ReadOnly Property ForeignKey As ForeignKey

Getter Getter

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

IPropertyBase.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.IPropertyBase.DeclaringEntityType

Inherited from PropertyBase

IsShadowProperty IsShadowProperty

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

Item[String] Item(String)

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

(Inherited from Annotatable)

MemberInfo MemberInfo

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

Name Name

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

PropertyIndexes PropertyIndexes

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 PropertyIndexes PropertyIndexes { get; set; }
Public Overridable Property PropertyIndexes As PropertyIndexes

PropertyInfo PropertyInfo

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

Setter Setter

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

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)

FindInverse() FindInverse()

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 Navigation FindInverse()
Public Overridable Function FindInverse As Navigation
Returns

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)

GetClrProperty(String, EntityType, EntityType, Boolean) GetClrProperty(String, EntityType, EntityType, Boolean)

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 static PropertyInfo GetClrProperty(string navigationName, EntityType sourceType, EntityType targetType, bool shouldThrow)
Public Shared Function GetClrProperty(navigationName As String, sourceType As EntityType, targetType As EntityType, shouldThrow As Boolean) As PropertyInfo
Parameters
navigationName
System.String System.String
sourceType
EntityType EntityType
targetType
EntityType EntityType
shouldThrow
System.Boolean System.Boolean
Returns
System.Reflection.PropertyInfo System.Reflection.PropertyInfo

GetFieldInfoConfigurationSource() GetFieldInfoConfigurationSource()

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

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)

GetTargetType() GetTargetType()

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 GetTargetType()
Public Overridable Function GetTargetType As EntityType
Returns

GetType() GetType()

Inherited from System.Object

IsCompatible(PropertyInfo, Type, Type, Nullable, Boolean) IsCompatible(PropertyInfo, Type, Type, Nullable(Of Boolean), Boolean)

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 static bool IsCompatible(PropertyInfo navigationProperty, Type sourceClrType, Type targetClrType, bool ? shouldBeCollection, bool shouldThrow)
Public Shared Function IsCompatible(navigationProperty As PropertyInfo, sourceClrType As Type, targetClrType As Type, shouldBeCollection As Boolean?, shouldThrow As Boolean) As Boolean
Parameters
navigationProperty
System.Reflection.PropertyInfo System.Reflection.PropertyInfo
sourceClrType
System.Type System.Type
targetClrType
System.Type System.Type
shouldBeCollection
System.Nullable<System.Boolean> System.Nullable(Of System.Boolean)
shouldThrow
System.Boolean System.Boolean
Returns
System.Boolean System.Boolean

IsCompatible(String, PropertyInfo, EntityType, EntityType, Nullable, Boolean) IsCompatible(String, PropertyInfo, EntityType, EntityType, Nullable(Of Boolean), Boolean)

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 static bool IsCompatible(string navigationName, PropertyInfo navigationProperty, EntityType sourceType, EntityType targetType, bool ? shouldBeCollection, bool shouldThrow)
Public Shared Function IsCompatible(navigationName As String, navigationProperty As PropertyInfo, sourceType As EntityType, targetType As EntityType, shouldBeCollection As Boolean?, shouldThrow As Boolean) As Boolean
Parameters
navigationName
System.String System.String
navigationProperty
System.Reflection.PropertyInfo System.Reflection.PropertyInfo
sourceType
EntityType EntityType
targetType
EntityType EntityType
shouldBeCollection
System.Nullable<System.Boolean> System.Nullable(Of System.Boolean)
shouldThrow
System.Boolean System.Boolean
Returns
System.Boolean System.Boolean

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)

OnFieldInfoSet(FieldInfo) OnFieldInfoSet(FieldInfo)

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

PropertyMetadataChanged() PropertyMetadataChanged()

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.

protected override void PropertyMetadataChanged()
Protected Overrides Sub PropertyMetadataChanged
Overrides

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)

SetField(String, ConfigurationSource) SetField(String, 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 PropertyBase)

SetFieldInfo(FieldInfo, ConfigurationSource, Boolean) SetFieldInfo(FieldInfo, ConfigurationSource, Boolean)

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

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

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)

IMutableNavigation.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation.DeclaringEntityType

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

IMutableNavigation.ForeignKey Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation.ForeignKey

IMutableForeignKey IMutableNavigation.ForeignKey { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation.ForeignKey As IMutableForeignKey Implements IMutableNavigation.ForeignKey
Returns

IMutablePropertyBase.DeclaringType Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase.DeclaringType

IMutableTypeBase IMutablePropertyBase.DeclaringType { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase.DeclaringType As IMutableTypeBase Implements IMutablePropertyBase.DeclaringType
Returns

INavigation.DeclaringEntityType Microsoft.EntityFrameworkCore.Metadata.INavigation.DeclaringEntityType

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

INavigation.ForeignKey Microsoft.EntityFrameworkCore.Metadata.INavigation.ForeignKey

IForeignKey INavigation.ForeignKey { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.INavigation.ForeignKey As IForeignKey Implements INavigation.ForeignKey
Returns

IPropertyBase.DeclaringType Microsoft.EntityFrameworkCore.Metadata.IPropertyBase.DeclaringType

ITypeBase IPropertyBase.DeclaringType { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Metadata.IPropertyBase.DeclaringType As ITypeBase Implements IPropertyBase.DeclaringType
Returns