Sdílet prostřednictvím


IConventionEntityTypeBuilder.HasNoRelationship Metoda

Definice

Přetížení

HasNoRelationship(IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType, Boolean)

Odebere relaci z tohoto typu entity.

HasNoRelationship(IConventionForeignKey, Boolean)

Odebere cizí klíč z tohoto typu entity.

HasNoRelationship(IReadOnlyList<IConventionProperty>, IConventionKey, IConventionEntityType, Boolean)

Odebere relaci z tohoto typu entity.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoRelationship (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType principalEntityType, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoRelationship (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType principalEntityType, bool fromDataAnnotation = false);
abstract member HasNoRelationship : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoRelationship (properties As IReadOnlyList(Of IConventionProperty), principalKey As IConventionKey, principalEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametry

properties
IReadOnlyList<IConventionProperty>

Vlastnosti, pro které je cizí klíč definován.

principalKey
IConventionKey

Primární nebo alternativní klíč, na který se odkazuje.

principalEntityType
IConventionEntityType

Typ entity, na který relace cílí. To se může lišit od typu definovaného v případě, kdy principalKey relace cílí na odvozený typ v hierarchii dědičnosti (protože klíč je definován na základním typu hierarchie).

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Stejná instance tvůrce, pokud byla relace odebrána nebo neexistovala, null jinak.

Platí pro

HasNoRelationship(IConventionForeignKey, Boolean)

Odebere cizí klíč z tohoto typu entity.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoRelationship (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoRelationship (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
abstract member HasNoRelationship : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoRelationship (foreignKey As IConventionForeignKey, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametry

foreignKey
IConventionForeignKey

Cizí klíč, který se má odebrat.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Stejná instance tvůrce, pokud byl cizí klíč odebrán, null jinak.

Platí pro