Compartilhar via


RelationshipDiscoveryConvention.ProcessForeignKeyNullNavigationSet Método

Definição

Chamado depois que uma navegação é definida null como em uma chave estrangeira.

public virtual void ProcessForeignKeyNullNavigationSet (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder relationshipBuilder, bool pointsToPrincipal, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> context);
abstract member ProcessForeignKeyNullNavigationSet : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * bool * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
override this.ProcessForeignKeyNullNavigationSet : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder * bool * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation> -> unit
Public Overridable Sub ProcessForeignKeyNullNavigationSet (relationshipBuilder As IConventionForeignKeyBuilder, pointsToPrincipal As Boolean, context As IConventionContext(Of IConventionNavigation))

Parâmetros

relationshipBuilder
IConventionForeignKeyBuilder

O construtor da chave estrangeira.

pointsToPrincipal
Boolean

Um valor que indica se a null navegação apontaria para o tipo de entidade principal.

context
IConventionContext<IConventionNavigation>

Informações adicionais associadas à execução da convenção.

Implementações

Aplica-se a