Udostępnij za pośrednictwem


CollectionCollectionBuilder.UsingEntity Method

Definition

Overloads

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.

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

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.

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

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

UsingEntity(String, Type, Action<EntityTypeBuilder>)

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

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

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.

UsingEntity(Type)

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

UsingEntity(String, Type)

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.

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

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.

UsingEntity(String)

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

UsingEntity(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.

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<IMutableEntityType,IMutableForeignKey>, Func<IMutableEntityType,IMutableForeignKey>)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType UsingEntity (string? joinEntityName, Type? joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType,Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>? configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType,Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>? configureLeft);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Protected Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of IMutableEntityType, IMutableForeignKey), configureLeft As Func(Of IMutableEntityType, IMutableForeignKey)) As IMutableEntityType

Parameters

joinEntityName
String
joinEntityType
Type

Returns

Attributes

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

joinEntityType
Type

The CLR type of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

Returns

The builder for the join entity type.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder

Parameters

joinEntityType
Type

The CLR type of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

Returns

The builder for the join entity type.

Applies to

UsingEntity(String, Type, Action<EntityTypeBuilder>)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

joinEntityType
Type

The CLR type of the join entity.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

Returns

The builder for the join entity type.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

UsingEntity(Type)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType);
abstract member UsingEntity : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type) As EntityTypeBuilder

Parameters

joinEntityType
Type

The CLR type of the join entity.

Returns

The builder for the join entity type.

Applies to

UsingEntity(String, Type)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType);
abstract member UsingEntity : string * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

joinEntityType
Type

The CLR type of the join entity.

Returns

The builder for the join entity type.

Applies to

UsingEntity(String, Action<EntityTypeBuilder>)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder

Parameters

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

Returns

The builder for the join entity type.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityType
Type

The CLR type of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

UsingEntity(String)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName);
abstract member UsingEntity : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

Returns

The builder for the join entity type.

Applies to

UsingEntity(Action<EntityTypeBuilder>)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

UsingEntity(Type, Action<EntityTypeBuilder>)

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityType
Type

The CLR type of the join entity.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to

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

Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs
Source:
CollectionCollectionBuilder.cs

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

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder

Parameters

joinEntityName
String

The name of the join entity.

joinEntityType
Type

The CLR type of the join entity.

configureRight
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the right entity type.

configureLeft
Func<EntityTypeBuilder,ReferenceCollectionBuilder>

The configuration for the relationship to the left entity type.

configureJoinEntityType
Action<EntityTypeBuilder>

The configuration of the join entity type.

Returns

The builder for the originating entity type so that multiple configuration calls can be chained.

Applies to