Freigeben über


CollectionCollectionBuilder<TLeftEntity,TRightEntity> Class

Definition

Provides a simple API for configuring a many-to-many relationship.

public class CollectionCollectionBuilder<TLeftEntity,TRightEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionCollectionBuilder where TLeftEntity : class where TRightEntity : class
type CollectionCollectionBuilder<'LeftEntity, 'RightEntity (requires 'LeftEntity : null and 'RightEntity : null)> = class
    inherit CollectionCollectionBuilder
Public Class CollectionCollectionBuilder(Of TLeftEntity, TRightEntity)
Inherits CollectionCollectionBuilder

Type Parameters

TLeftEntity

One of the entity types in this relationship.

TRightEntity

One of the entity types in this relationship.

Inheritance
CollectionCollectionBuilder<TLeftEntity,TRightEntity>

Remarks

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.

See Modeling entity types and relationships for more information and examples.

Constructors

CollectionCollectionBuilder<TLeftEntity,TRightEntity>(IMutableEntityType, IMutableEntityType, IMutableSkipNavigation, IMutableSkipNavigation)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

LeftEntityType

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from CollectionCollectionBuilder)
LeftNavigation

One of the navigations involved in the relationship.

(Inherited from CollectionCollectionBuilder)
ModelBuilder

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from CollectionCollectionBuilder)
RightEntityType

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from CollectionCollectionBuilder)
RightNavigation

One of the navigations involved in the relationship.

(Inherited from CollectionCollectionBuilder)

Methods

Using(IMutableForeignKey, IMutableForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity(String, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity(String, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Type, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity(String, Type, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Type, Func<IMutableEntityType,IMutableForeignKey>, Func<IMutableEntityType,IMutableForeignKey>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String, Type)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(String)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Type, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity(Type, Action<EntityTypeBuilder>)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)

Configures the relationships to the entity types participating in the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity(Type)

Configures the join entity type implementing the many-to-many relationship.

(Inherited from CollectionCollectionBuilder)
UsingEntity<TJoinEntity>()

Configures the join entity type implementing the many-to-many relationship.

UsingEntity<TJoinEntity>(Action<EntityTypeBuilder<TJoinEntity>>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity<TJoinEntity>(String, Action<EntityTypeBuilder<TJoinEntity>>)

Configures the join entity type implementing the many-to-many relationship.

UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)

Configures the relationships to the entity types participating in the many-to-many relationship.

UsingEntity<TJoinEntity>(String)

Configures the join entity type implementing the many-to-many relationship.

Applies to