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

Definition

Provides a simple API for configuring a relationship where configuration began on an end of the relationship with a collection that contains instances 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 CollectionNavigationBuilder<TEntity, TRelatedEntity> : CollectionNavigationBuilder, IInfrastructure<InternalRelationshipBuilder> where TEntity : class where TRelatedEntity : class
Public Class CollectionNavigationBuilder(Of TEntity As Class, TRelatedEntity As Class)
    Inherits CollectionNavigationBuilder
    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
CollectionNavigationBuilder<TEntity, TRelatedEntity>CollectionNavigationBuilder(Of TEntity, TRelatedEntity)
Implements

Constructors

CollectionNavigationBuilder(EntityType, EntityType, PropertyInfo, InternalRelationshipBuilder) CollectionNavigationBuilder(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
WithOne(Expression<Func<TRelatedEntity, TEntity>>) WithOne(Expression(Of Func(Of TRelatedEntity, TEntity)))

Configures this as a one-to-many relationship.

WithOne(String) WithOne(String)

Configures this as a one-to-many 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 CollectionNavigationBuilder)
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 CollectionNavigationBuilder)

Properties

CollectionName CollectionName

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 CollectionNavigationBuilder)
CollectionProperty CollectionProperty

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 CollectionNavigationBuilder)
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 CollectionNavigationBuilder)
IInfrastructure<InternalRelationshipBuilder>.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>.Instance

Gets the internal builder being used to configure the relationship.

This property is intended for use by extension methods that need to make use of services not directly exposed in the public API surface.

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

Extension Methods

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