ForeignKeyAttributeConvention Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Uma convenção que configura as propriedades de chave estrangeira associadas a uma propriedade de navegação com base nas ForeignKeyAttribute propriedades especificadas ou nas propriedades de navegação.
public class ForeignKeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ForeignKeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class ForeignKeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
public class ForeignKeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationForeignKeyChangedConvention
type ForeignKeyAttributeConvention = class
interface IForeignKeyAddedConvention
interface IConvention
interface IModelFinalizedConvention
type ForeignKeyAttributeConvention = class
interface IForeignKeyAddedConvention
interface IConvention
interface INavigationAddedConvention
interface IModelFinalizingConvention
type ForeignKeyAttributeConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IForeignKeyAddedConvention
interface INavigationAddedConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IModelFinalizingConvention
type ForeignKeyAttributeConvention = class
interface IEntityTypeAddedConvention
interface IConvention
interface IForeignKeyAddedConvention
interface INavigationAddedConvention
interface ISkipNavigationForeignKeyChangedConvention
interface IPropertyAddedConvention
interface IComplexPropertyAddedConvention
interface IModelFinalizingConvention
Public Class ForeignKeyAttributeConvention
Implements IForeignKeyAddedConvention, IModelFinalizedConvention
Public Class ForeignKeyAttributeConvention
Implements IForeignKeyAddedConvention, IModelFinalizingConvention, INavigationAddedConvention
Public Class ForeignKeyAttributeConvention
Implements IEntityTypeAddedConvention, IForeignKeyAddedConvention, IModelFinalizingConvention, INavigationAddedConvention, ISkipNavigationForeignKeyChangedConvention
Public Class ForeignKeyAttributeConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IForeignKeyAddedConvention, IModelFinalizingConvention, INavigationAddedConvention, IPropertyAddedConvention, ISkipNavigationForeignKeyChangedConvention
- Herança
-
ForeignKeyAttributeConvention
- Implementações
Comentários
Para relações um para um, o atributo deve ser especificado na propriedade de navegação que aponta para a entidade de segurança.
Consulte Convenções de criação de modelo para obter mais informações e exemplos.
Construtores
ForeignKeyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Cria uma nova instância de ForeignKeyAttributeConvention. |
Propriedades
Dependencies |
Dependências para esse serviço. |
Métodos
Aplica-se a
Entity Framework