共用方式為


CollectionCollectionBuilder<TLeftEntity,TRightEntity>.UsingEntity 方法

定義

多載

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

設定參與多對多關聯性之實體類型的關聯性。

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

設定參與多對多關聯性之實體類型的關聯性。

UsingEntity(String, Type, Action<EntityTypeBuilder>)

設定實作多對多關聯性的聯結實體類型。

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

設定參與多對多關聯性之實體類型的關聯性。

UsingEntity(Type, Action<EntityTypeBuilder>)

設定實作多對多關聯性的聯結實體類型。

UsingEntity(String, Action<EntityTypeBuilder>)

設定實作多對多關聯性的聯結實體類型。

UsingEntity(Action<EntityTypeBuilder>)

設定實作多對多關聯性的聯結實體類型。

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

設定參與多對多關聯性之實體類型的關聯性。

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

設定參與多對多關聯性之實體類型的關聯性。

UsingEntity<TJoinEntity>()

設定實作多對多關聯性的聯結實體類型。

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

設定實作多對多關聯性的聯結實體類型。

UsingEntity<TJoinEntity>(String)

設定實作多對多關聯性的聯結實體類型。

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

設定參與多對多關聯性之實體類型的關聯性。

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

設定實作多對多關聯性的聯結實體類型。

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

設定參與多對多關聯性之實體類型的關聯性。

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

設定參與多對多關聯性之實體類型的關聯性。

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>>

與左實體類型關聯性的組態。

傳回

EntityTypeBuilder<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 類型。

傳回

EntityTypeBuilder<TJoinEntity>

聯結實體類型的產生器。

適用於

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>>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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

聯結實體的名稱。

傳回

EntityTypeBuilder<TJoinEntity>

聯結實體類型的產生器。

適用於

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>>

與左實體類型關聯性的組態。

傳回

EntityTypeBuilder<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>>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於

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>>

聯結實體類型的組態。

傳回

EntityTypeBuilder<TRightEntity>

原始實體類型的產生器,以便鏈結多個組態呼叫。

適用於