ReferenceNavigationBuilder ReferenceNavigationBuilder Class

Provides a simple API for configuring a relationship where configuration began on an end of the relationship with a reference that points to an instance of another entity type.

Instances of this class are returned from methods when using the ModelBuilder API and it is not designed to be directly constructed in your application code.

Syntax

Declaration

public class ReferenceNavigationBuilder : IInfrastructure<InternalRelationshipBuilder>Public Class ReferenceNavigationBuilder
    Implements IInfrastructure(Of InternalRelationshipBuilder)

Inheritance Hierarchy

  • System.Object
    System.Object
  • ReferenceNavigationBuilder
    ReferenceNavigationBuilder

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

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.

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 summary

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.

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.

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.

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 summary

Configures this as a one-to-many relationship.

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.

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.

Configures this as a one-to-one relationship.

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.

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 summary

Gets the internal builder being used to configure the relationship.

Constructors

  • ReferenceNavigationBuilder(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder)
    ReferenceNavigationBuilder(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder)

    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 ReferenceNavigationBuilder(EntityType declaringEntityType, EntityType relatedEntityType, PropertyInfo navigationProperty, InternalRelationshipBuilder builder)Public Sub New(declaringEntityType As EntityType, relatedEntityType As EntityType, navigationProperty As PropertyInfo, builder As InternalRelationshipBuilder)

    Parameters

  • ReferenceNavigationBuilder(EntityType, EntityType, String, InternalRelationshipBuilder)
    ReferenceNavigationBuilder(EntityType, EntityType, String, InternalRelationshipBuilder)

    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 ReferenceNavigationBuilder(EntityType declaringEntityType, EntityType relatedEntityType, string navigationName, InternalRelationshipBuilder builder)Public Sub New(declaringEntityType As EntityType, relatedEntityType As EntityType, navigationName As String, builder As InternalRelationshipBuilder)

    Parameters

Properties

  • 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.

    protected virtual EntityType DeclaringEntityType { get; }Protected Overridable ReadOnly Property DeclaringEntityType As EntityType

    Property Value

  • ReferenceName
    ReferenceName

    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 virtual string ReferenceName { get; }Protected Overridable ReadOnly Property ReferenceName As String

    Property Value

    • System.String
      System.String
  • ReferenceProperty
    ReferenceProperty

    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 virtual PropertyInfo ReferenceProperty { get; }Protected Overridable ReadOnly Property ReferenceProperty As PropertyInfo

    Property Value

    • System.Reflection.PropertyInfo
      System.Reflection.PropertyInfo
  • RelatedEntityType
    RelatedEntityType

    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 virtual EntityType RelatedEntityType { get; }Protected Overridable ReadOnly Property RelatedEntityType As EntityType

    Property Value

Methods

  • WithMany(String)
    WithMany(String)

    Configures this as a one-to-many relationship.

    public virtual ReferenceCollectionBuilder WithMany(string collection = null)Public Overridable Function WithMany(collection As String = Nothing) As ReferenceCollectionBuilder

    Parameters

    • collection
      System.String
      System.String

      The name of the collection navigation property on the other end of this relationship. If null, there is no navigation property on the other end of the relationship.

    Returns

  • WithManyBuilder(PropertyInfo)
    WithManyBuilder(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.

    protected virtual InternalRelationshipBuilder WithManyBuilder(PropertyInfo navigationProperty)Protected Overridable Function WithManyBuilder(navigationProperty As PropertyInfo) As InternalRelationshipBuilder

    Parameters

    • navigationProperty
      System.Reflection.PropertyInfo
      System.Reflection.PropertyInfo

    Returns

  • WithManyBuilder(String)
    WithManyBuilder(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.

    protected virtual InternalRelationshipBuilder WithManyBuilder(string navigationName)Protected Overridable Function WithManyBuilder(navigationName As String) As InternalRelationshipBuilder

    Parameters

    • navigationName
      System.String
      System.String

    Returns

  • WithOne(String)
    WithOne(String)

    Configures this as a one-to-one relationship.

    public virtual ReferenceReferenceBuilder WithOne(string reference = null)Public Overridable Function WithOne(reference As String = Nothing) As ReferenceReferenceBuilder

    Parameters

    • reference
      System.String
      System.String

      The name of the reference navigation property on the other end of this relationship. If null, there is no navigation property on the other end of the relationship.

    Returns

  • WithOneBuilder(PropertyInfo)
    WithOneBuilder(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.

    protected virtual InternalRelationshipBuilder WithOneBuilder(PropertyInfo navigationProperty)Protected Overridable Function WithOneBuilder(navigationProperty As PropertyInfo) As InternalRelationshipBuilder

    Parameters

    • navigationProperty
      System.Reflection.PropertyInfo
      System.Reflection.PropertyInfo

    Returns

  • WithOneBuilder(String)
    WithOneBuilder(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.

    protected virtual InternalRelationshipBuilder WithOneBuilder(string navigationName)Protected Overridable Function WithOneBuilder(navigationName As String) As InternalRelationshipBuilder

    Parameters

    • navigationName
      System.String
      System.String

    Returns

Explicit Interface Implementations

  • IInfrastructure<InternalRelationshipBuilder>.Instance
    Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>.Instance

    Gets the internal builder being used to configure the relationship.

    InternalRelationshipBuilder IInfrastructure<InternalRelationshipBuilder>.Instance { get; }ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>.Instance As InternalRelationshipBuilder Implements IInfrastructure(Of InternalRelationshipBuilder).Instance

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll