ReferenceNavigationBuilder<TEntity, TRelatedEntity> ReferenceNavigationBuilder(Of TEntity, TRelatedEntity) Class

Definition

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.

public class ReferenceNavigationBuilder<TEntity, TRelatedEntity> : ReferenceNavigationBuilder, IInfrastructure<InternalRelationshipBuilder> where TEntity : class where TRelatedEntity : class
Public Class ReferenceNavigationBuilder(Of TEntity As Class, TRelatedEntity As Class)
    Inherits ReferenceNavigationBuilder
    Implements IInfrastructure(Of InternalRelationshipBuilder)

Type Parameters

TEntity

The entity type to be configured.

TRelatedEntity

The entity type that this relationship targets.

Inheritance
System.ObjectSystem.Object
ReferenceNavigationBuilder<TEntity, TRelatedEntity>ReferenceNavigationBuilder(Of TEntity, TRelatedEntity)
Implements

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.

Methods

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
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
System.Object.ToString() System.Object.ToString() Inherited from System.Object
WithMany(Expression<Func<TRelatedEntity, IEnumerable<TEntity>>>) WithMany(Expression(Of Func(Of TRelatedEntity, IEnumerable(Of TEntity))))

Configures this as a one-to-many relationship.

WithMany(String) WithMany(String)

Configures this as a one-to-many relationship.

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.

(Inherited from ReferenceNavigationBuilder)
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.

(Inherited from ReferenceNavigationBuilder)
WithOne(Expression<Func<TRelatedEntity, TEntity>>) WithOne(Expression(Of Func(Of TRelatedEntity, TEntity)))

Configures this as a one-to-one relationship.

WithOne(String) WithOne(String)

Configures this as a one-to-one relationship.

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.

(Inherited from ReferenceNavigationBuilder)
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.

(Inherited from ReferenceNavigationBuilder)

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.

(Inherited from ReferenceNavigationBuilder)
IInfrastructure<InternalRelationshipBuilder>.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>.Instance

Gets the internal builder being used to configure the relationship.

(Inherited from ReferenceNavigationBuilder)
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.

(Inherited from ReferenceNavigationBuilder)
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.

(Inherited from ReferenceNavigationBuilder)
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.

(Inherited from ReferenceNavigationBuilder)

Extension Methods

Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>() Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetInfrastructure(Of Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder)()