CollectionCollectionBuilder<TLeftEntity,TRightEntity>.UsingEntity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Configures the relationships to the entity types participating in the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> 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);
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<'RightEntity (requires 'RightEntity : null)>
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(Of TRightEntity)
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, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Configures the relationships to the entity types participating in the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> 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);
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<'RightEntity (requires 'RightEntity : null)>
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(Of TRightEntity)
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(String, Type, Action<EntityTypeBuilder>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity (string joinEntityName, Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
override this.UsingEntity : string * Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)>
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder(Of TRightEntity)
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, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Configures the relationships to the entity types participating in the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> 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);
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<'RightEntity (requires 'RightEntity : null)>
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(Of TRightEntity)
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
UsingEntity(Type, Action<EntityTypeBuilder>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity (Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
override this.UsingEntity : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)>
Public Overridable Function UsingEntity (joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder(Of TRightEntity)
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, Action<EntityTypeBuilder>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity (string joinEntityName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
override this.UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)>
Public Overridable Function UsingEntity (joinEntityName As String, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder(Of TRightEntity)
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(Action<EntityTypeBuilder>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
override this.UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)>
Public Overridable Function UsingEntity (configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder(Of TRightEntity)
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(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Configures the relationships to the entity types participating in the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> 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);
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<'RightEntity (requires 'RightEntity : null)>
Public Overridable Function UsingEntity (configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder(Of TRightEntity)
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<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.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity> UsingEntity<TJoinEntity> (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TRightEntity,TJoinEntity>> configureLeft) where TJoinEntity : class;
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'LeftEntity, 'JoinEntity>> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'RightEntity, 'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity (requires 'JoinEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TLeftEntity, TJoinEntity)), configureLeft As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TRightEntity, TJoinEntity))) As EntityTypeBuilder(Of TJoinEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- joinEntityName
- String
The name of the join entity.
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
The configuration for the relationship to the right entity type.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
The configuration for the relationship to the left entity type.
Returns
The builder for the join entity type.
Applies to
UsingEntity<TJoinEntity>()
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity> UsingEntity<TJoinEntity> () where TJoinEntity : class;
override this.UsingEntity : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity (requires 'JoinEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) () As EntityTypeBuilder(Of TJoinEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Returns
The builder for the join entity type.
Applies to
UsingEntity<TJoinEntity>(Action<EntityTypeBuilder<TJoinEntity>>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity<TJoinEntity> (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>> configureJoinEntityType) where TJoinEntity : class;
override this.UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (configureJoinEntityType As Action(Of EntityTypeBuilder(Of TJoinEntity))) As EntityTypeBuilder(Of TRightEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
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<TJoinEntity>(String)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity> UsingEntity<TJoinEntity> (string joinEntityName) where TJoinEntity : class;
override this.UsingEntity : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity (requires 'JoinEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (joinEntityName As String) As EntityTypeBuilder(Of TJoinEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- joinEntityName
- String
The name of the join entity.
Returns
The builder for the join entity type.
Applies to
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.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity> UsingEntity<TJoinEntity> (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TRightEntity,TJoinEntity>> configureLeft) where TJoinEntity : class;
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'LeftEntity, 'JoinEntity>> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'RightEntity, 'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity (requires 'JoinEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (configureRight As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TLeftEntity, TJoinEntity)), configureLeft As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TRightEntity, TJoinEntity))) As EntityTypeBuilder(Of TJoinEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
The configuration for the relationship to the right entity type.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
The configuration for the relationship to the left entity type.
Returns
The builder for the join type.
Applies to
UsingEntity<TJoinEntity>(String, Action<EntityTypeBuilder<TJoinEntity>>)
Configures the join entity type implementing the many-to-many relationship.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity<TJoinEntity> (string joinEntityName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>> configureJoinEntityType) where TJoinEntity : class;
override this.UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (joinEntityName As String, configureJoinEntityType As Action(Of EntityTypeBuilder(Of TJoinEntity))) As EntityTypeBuilder(Of TRightEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- joinEntityName
- String
The name of the join entity.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
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<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.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity<TJoinEntity> (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TRightEntity,TJoinEntity>> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>> configureJoinEntityType) where TJoinEntity : class;
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'LeftEntity, 'JoinEntity>> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'RightEntity, 'JoinEntity>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (configureRight As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TLeftEntity, TJoinEntity)), configureLeft As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TRightEntity, TJoinEntity)), configureJoinEntityType As Action(Of EntityTypeBuilder(Of TJoinEntity))) As EntityTypeBuilder(Of TRightEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
The configuration for the relationship to the right entity type.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
The configuration for the relationship to the left entity type.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
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<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.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TRightEntity> UsingEntity<TJoinEntity> (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<TRightEntity,TJoinEntity>> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TJoinEntity>> configureJoinEntityType) where TJoinEntity : class;
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'LeftEntity, 'JoinEntity>> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder<'RightEntity, 'JoinEntity>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'JoinEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'RightEntity (requires 'RightEntity : null)> (requires 'JoinEntity : null)
Public Overridable Function UsingEntity(Of TJoinEntity As Class) (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TLeftEntity, TJoinEntity)), configureLeft As Func(Of EntityTypeBuilder(Of TJoinEntity), ReferenceCollectionBuilder(Of TRightEntity, TJoinEntity)), configureJoinEntityType As Action(Of EntityTypeBuilder(Of TJoinEntity))) As EntityTypeBuilder(Of TRightEntity)
Type Parameters
- TJoinEntity
The CLR type of the join entity.
Parameters
- joinEntityName
- String
The name of the join entity.
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
The configuration for the relationship to the right entity type.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
The configuration for the relationship to the left entity type.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
The configuration of the join entity type.
Returns
The builder for the originating entity type so that multiple configuration calls can be chained.