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

Inherited Members

Microsoft.EntityFrameworkCore.Metadata.Internal.PropertyBase

Microsoft.EntityFrameworkCore.Metadata.Internal.ConventionalAnnotatable

AddAnnotation(System.String, System.Object, ConfigurationSource)AddAnnotation(System.String, System.Object, ConfigurationSource)
AddAnnotation(System.String, System.Object)AddAnnotation(System.String, System.Object)
SetAnnotation(System.String, System.Object, ConfigurationSource)SetAnnotation(System.String, System.Object, ConfigurationSource)
GetOrAddAnnotation(System.String, System.Object)GetOrAddAnnotation(System.String, System.Object)
FindAnnotation(System.String)FindAnnotation(System.String)
RemoveAnnotation(System.String)RemoveAnnotation(System.String)
CreateAnnotation(System.String, System.Object)CreateAnnotation(System.String, System.Object)

Microsoft.EntityFrameworkCore.Infrastructure.Annotatable

System.Object

System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

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

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

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

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

Methods

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

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

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

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

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

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

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