CollectionCollectionBuilder<TLeftEntity,TRightEntity>.UsingEntity 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
配置与参与多对多关系的实体类型的关系。
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)
参数
- joinEntityType
- Type
联接实体的 CLR 类型。
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(String, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
配置与参与多对多关系的实体类型的关系。
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)
参数
- joinEntityName
- String
联接实体的名称。
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(String, Type, Action<EntityTypeBuilder>)
配置实现多对多关系的联接实体类型。
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)
参数
- joinEntityName
- String
联接实体的名称。
- joinEntityType
- Type
联接实体的 CLR 类型。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
配置与参与多对多关系的实体类型的关系。
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)
参数
- joinEntityName
- String
联接实体的名称。
- joinEntityType
- Type
联接实体的 CLR 类型。
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(Type, Action<EntityTypeBuilder>)
配置实现多对多关系的联接实体类型。
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)
参数
- joinEntityType
- Type
联接实体的 CLR 类型。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(String, Action<EntityTypeBuilder>)
配置实现多对多关系的联接实体类型。
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)
参数
- joinEntityName
- String
联接实体的名称。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(Action<EntityTypeBuilder>)
配置实现多对多关系的联接实体类型。
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)
参数
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
配置与参与多对多关系的实体类型的关系。
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)
参数
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)
配置与参与多对多关系的实体类型的关系。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- joinEntityName
- String
联接实体的名称。
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
与左侧实体类型的关系的配置。
返回
联接实体类型的生成器。
适用于
UsingEntity<TJoinEntity>()
配置实现多对多关系的联接实体类型。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
返回
联接实体类型的生成器。
适用于
UsingEntity<TJoinEntity>(Action<EntityTypeBuilder<TJoinEntity>>)
配置实现多对多关系的联接实体类型。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity<TJoinEntity>(String)
配置实现多对多关系的联接实体类型。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- joinEntityName
- String
联接实体的名称。
返回
联接实体类型的生成器。
适用于
UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)
配置与参与多对多关系的实体类型的关系。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
与左侧实体类型的关系的配置。
返回
联接类型的生成器。
适用于
UsingEntity<TJoinEntity>(String, Action<EntityTypeBuilder<TJoinEntity>>)
配置实现多对多关系的联接实体类型。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- joinEntityName
- String
联接实体的名称。
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)
配置与参与多对多关系的实体类型的关系。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。
适用于
UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)
配置与参与多对多关系的实体类型的关系。
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)
类型参数
- TJoinEntity
联接实体的 CLR 类型。
参数
- joinEntityName
- String
联接实体的名称。
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
与正确实体类型的关系的配置。
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
与左侧实体类型的关系的配置。
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
联接实体类型的配置。
返回
原始实体类型的生成器,以便可以链接多个配置调用。