CollectionCollectionBuilder.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(String, Type, Func<IMutableEntityType,IMutableForeignKey>, Func<IMutableEntityType,IMutableForeignKey>)
Toto je interní rozhraní API, které podporuje infrastrukturu Entity Framework Core a nepodléhá stejným standardům kompatibility jako veřejná rozhraní API. Může se změnit nebo odebrat bez předchozího upozornění v jakékoli verzi. Měli byste ho používat přímo v kódu pouze s extrémní opatrností a s vědomím, že to může vést k selhání aplikací při aktualizaci na novou verzi Entity Framework Core.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
protected virtual Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType UsingEntity (string? joinEntityName, Type? joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType,Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>? configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType,Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>? configureLeft);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> * Func<Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType, Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Protected Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of IMutableEntityType, IMutableForeignKey), configureLeft As Func(Of IMutableEntityType, IMutableForeignKey)) As IMutableEntityType
Parametry
- joinEntityName
- String
- joinEntityType
- Type
- configureRight
- Func<IMutableEntityType,IMutableForeignKey>
- configureLeft
- Func<IMutableEntityType,IMutableForeignKey>
Návraty
- Atributy
Platí pro
UsingEntity(String, Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder
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.
Návraty
Tvůrce pro typ entity join.
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 UsingEntity (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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(Type, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder
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.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity(String, Type, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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, Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder
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.
Návraty
Tvůrce pro typ entity join.
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 UsingEntity (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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(Type)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType);
abstract member UsingEntity : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type) As EntityTypeBuilder
Parametry
- joinEntityType
- Type
Typ CLR entity join.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity(String, Type)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType);
abstract member UsingEntity : string * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type) As EntityTypeBuilder
Parametry
- joinEntityName
- String
Název entity join.
- joinEntityType
- Type
Typ CLR entity join.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity(String, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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(Func<EntityTypeBuilder,ReferenceCollectionBuilder>, Func<EntityTypeBuilder,ReferenceCollectionBuilder>)
Konfiguruje relace s typy entit, které se účastní relace M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft);
abstract member UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder)) As EntityTypeBuilder
Parametry
- configureRight
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace vztahu ke správnému typu entity.
- configureLeft
- Func<EntityTypeBuilder,ReferenceCollectionBuilder>
Konfigurace relace s levým typem entity.
Návraty
Tvůrce pro typ entity join.
Platí pro
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 UsingEntity (Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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)
Nakonfiguruje typ entity join, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName);
abstract member UsingEntity : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String) As EntityTypeBuilder
Parametry
- joinEntityName
- String
Název entity join.
Návraty
Tvůrce pro typ entity join.
Platí pro
UsingEntity(Action<EntityTypeBuilder>)
Nakonfiguruje typ entity spojení, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
Parametry
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join
Návraty
Tvůrce pro původní typ entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
UsingEntity(Type, Action<EntityTypeBuilder>)
Nakonfiguruje typ entity spojení, který implementuje relaci M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (Type joinEntityType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityType As Type, configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
Parametry
- joinEntityType
- Type
Typ CLR entity join.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join.
Návraty
Tvůrce pro původní typ 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 k typům entit, které se účastní relace M:N.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UsingEntity (string joinEntityName, Type joinEntityType, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureRight, Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder,Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> configureLeft, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> configureJoinEntityType);
abstract member UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.UsingEntity : string * Type * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Func<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder, Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceCollectionBuilder> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function UsingEntity (joinEntityName As String, joinEntityType As Type, configureRight As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureLeft As Func(Of EntityTypeBuilder, ReferenceCollectionBuilder), configureJoinEntityType As Action(Of EntityTypeBuilder)) As EntityTypeBuilder
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 vztahu k levému typu entity.
- configureJoinEntityType
- Action<EntityTypeBuilder>
Konfigurace typu entity join.
Návraty
Tvůrce pro původní typ entity, aby bylo možné zřetězených více volání konfigurace.
Platí pro
Entity Framework