ForeignKeyAttributeConvention Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Convenzione che configura le proprietà della chiave esterna associate a una proprietà di navigazione in base all'oggetto ForeignKeyAttribute specificato nelle proprietà o nelle proprietà di navigazione.
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
- Ereditarietà
-
ForeignKeyAttributeConvention
- Implementazioni
Commenti
Per le relazioni uno-a-uno, è necessario specificare l'attributo nella proprietà di navigazione che punta all'entità.
Per altre informazioni ed esempi, vedere Convenzioni di compilazione di modelli.
Costruttori
ForeignKeyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crea una nuova istanza di ForeignKeyAttributeConvention. |
Proprietà
Dependencies |
Dipendenze per questo servizio. |