Sdílet prostřednictvím


ReferenceOwnershipBuilder<TEntity,TRelatedEntity>.OwnsMany Metoda

Definice

Přetížení

OwnsMany<TDependentEntity>(Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>)

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

OwnsMany<TDependentEntity>(String)

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

OwnsMany<TDependentEntity>(Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>, Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>)

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

OwnsMany<TDependentEntity>(String, Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>)

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

OwnsMany<TDependentEntity>(Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>)

Zdroj:
ReferenceOwnershipBuilder%60.cs

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity> OwnsMany<TDependentEntity> (System.Linq.Expressions.Expression<Func<TRelatedEntity,System.Collections.Generic.IEnumerable<TDependentEntity>>> navigationExpression) where TDependentEntity : class;
override this.OwnsMany : System.Linq.Expressions.Expression<Func<'RelatedEntity, seq<'DependentEntity>>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'RelatedEntity, 'DependentEntity (requires 'RelatedEntity : null and 'DependentEntity : null)> (requires 'DependentEntity : null)
Public Overridable Function OwnsMany(Of TDependentEntity As Class) (navigationExpression As Expression(Of Func(Of TRelatedEntity, IEnumerable(Of TDependentEntity)))) As CollectionOwnershipBuilder(Of TRelatedEntity, TDependentEntity)

Parametry typu

TDependentEntity

Typ entity, na který tento vztah cílí.

Parametry

navigationExpression
Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>

Výraz lambda představující navigační vlastnost odkazu u tohoto typu entity, která představuje relaci (customer => customer.Address).

Návraty

CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>

Objekt, který lze použít ke konfiguraci vlastněného typu a relace.

Platí pro

OwnsMany<TDependentEntity>(String)

Zdroj:
ReferenceOwnershipBuilder%60.cs

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity> OwnsMany<TDependentEntity> (string navigationName) where TDependentEntity : class;
override this.OwnsMany : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'RelatedEntity, 'DependentEntity (requires 'RelatedEntity : null and 'DependentEntity : null)> (requires 'DependentEntity : null)
Public Overridable Function OwnsMany(Of TDependentEntity As Class) (navigationName As String) As CollectionOwnershipBuilder(Of TRelatedEntity, TDependentEntity)

Parametry typu

TDependentEntity

Typ entity, na který tento vztah cílí.

Parametry

navigationName
String

Název navigační vlastnosti odkazu u tohoto typu entity, která představuje relaci.

Návraty

CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>

Objekt, který lze použít ke konfiguraci vlastněného typu a relace.

Platí pro

OwnsMany<TDependentEntity>(Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>, Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>)

Zdroj:
ReferenceOwnershipBuilder%60.cs

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> OwnsMany<TDependentEntity> (System.Linq.Expressions.Expression<Func<TRelatedEntity,System.Collections.Generic.IEnumerable<TDependentEntity>>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>> buildAction) where TDependentEntity : class;
override this.OwnsMany : System.Linq.Expressions.Expression<Func<'RelatedEntity, seq<'DependentEntity>>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'RelatedEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'DependentEntity : null)
Public Overridable Function OwnsMany(Of TDependentEntity As Class) (navigationExpression As Expression(Of Func(Of TRelatedEntity, IEnumerable(Of TDependentEntity))), buildAction As Action(Of CollectionOwnershipBuilder(Of TRelatedEntity, TDependentEntity))) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Parametry typu

TDependentEntity

Typ entity, na který tento vztah cílí.

Parametry

navigationExpression
Expression<Func<TRelatedEntity,IEnumerable<TDependentEntity>>>

Výraz lambda představující navigační vlastnost odkazu u tohoto typu entity, která představuje relaci (customer => customer.Address).

buildAction
Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>

Akce, která provádí konfiguraci vlastněného typu a relace.

Návraty

Objekt, který lze použít ke konfiguraci typu entity.

Platí pro

OwnsMany<TDependentEntity>(String, Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>)

Zdroj:
ReferenceOwnershipBuilder%60.cs

Nakonfiguruje relaci, ve které je cílová entita vlastněná touto entitou (nebo její částí).

Cílový typ entity pro každý vztah vlastnictví se považuje za jiný typ entity, i když je navigace stejného typu. Konfigurace cílového typu entity se nepoužije na cílový typ entity jiných vztahů vlastnictví.

Většina operací s vlastněnou entitou vyžaduje přístup k entitě vlastníka pomocí odpovídající navigace.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> OwnsMany<TDependentEntity> (string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>> buildAction) where TDependentEntity : class;
override this.OwnsMany : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'RelatedEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'DependentEntity : null)
Public Overridable Function OwnsMany(Of TDependentEntity As Class) (navigationName As String, buildAction As Action(Of CollectionOwnershipBuilder(Of TRelatedEntity, TDependentEntity))) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Parametry typu

TDependentEntity

Typ entity, na který tento vztah cílí.

Parametry

navigationName
String

Název navigační vlastnosti odkazu u tohoto typu entity, která představuje relaci.

buildAction
Action<CollectionOwnershipBuilder<TRelatedEntity,TDependentEntity>>

Akce, která provádí konfiguraci vlastněného typu a relace.

Návraty

Objekt, který lze použít ke konfiguraci typu entity.

Platí pro