CollectionCollectionBuilder<TLeftEntity,TRightEntity>.UsingEntity Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
UsingEntity(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry
- joinEntityType
- Type
Typ CLR entity join.
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(String, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry
- joinEntityName
- String
Název entity join.
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(String, Type, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry
- joinEntityName
- String
Název entity join.
- joinEntityType
- Type
Typ CLR entity join.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry
- joinEntityName
- String
Název entity join.
- joinEntityType
- Type
Typ CLR entity join.
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(Type, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry
- joinEntityType
- Type
Typ CLR entity join.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(String, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry
- joinEntityName
- String
Název entity join.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Action<EntityTypeBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- joinEntityName
- String
Název entity join.
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
Konfigurace relace s levým typem entity.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity<TJoinEntity>()
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity<TJoinEntity>(Action<EntityTypeBuilder<TJoinEntity>>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity<TJoinEntity>(String)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- joinEntityName
- String
Název entity join.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
Konfigurace relace s levým typem entity.
Návraty
Tvůrce typu spojení.
Platí pro
UsingEntity<TJoinEntity>(String, Action<EntityTypeBuilder<TJoinEntity>>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- joinEntityName
- String
Název entity join.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity<TJoinEntity>(Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity<TJoinEntity>(String, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>, Func<EntityTypeBuilder<TJoinEntity>, ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>, Action<EntityTypeBuilder<TJoinEntity>>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
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)
Parametry typu
- TJoinEntity
Typ CLR entity join.
Parametry
- joinEntityName
- String
Název entity join.
- configureRight
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TLeftEntity,TJoinEntity>>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder<TJoinEntity>,ReferenceCollectionBuilder<TRightEntity,TJoinEntity>>
Konfigurace relace s levým typem entity.
- configureJoinEntityType
- Action<EntityTypeBuilder<TJoinEntity>>
Konfigurace typu entity join
Návraty
Tvůrce pro typ původní entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
Entity Framework