Langue

BackingFieldConvention Classe

Définition

Convention qui recherche des champs de stockage pour les propriétés en fonction de leurs noms :

  • <[nom de propriété]>k__BackingField
  • _[nom de la propriété en cas de chameau]
  • _[nom de propriété]
  • m_[nom de propriété en cas de chameau]
  • m_[nom de propriété]
  • [nom de propriété]_
[System.Runtime.CompilerServices.Nullable(0)]
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface ISkipNavigationAddedConvention
    interface IComplexPropertyAddedConvention
    interface IModelFinalizingConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface IModelFinalizedConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface ISkipNavigationAddedConvention
    interface IModelFinalizingConvention
Public Class BackingFieldConvention
Implements IComplexPropertyAddedConvention, IModelFinalizingConvention, INavigationAddedConvention, IPropertyAddedConvention, ISkipNavigationAddedConvention
Public Class BackingFieldConvention
Implements INavigationAddedConvention, IPropertyAddedConvention
Public Class BackingFieldConvention
Implements IModelFinalizedConvention, INavigationAddedConvention, IPropertyAddedConvention
Public Class BackingFieldConvention
Implements IModelFinalizingConvention, INavigationAddedConvention, IPropertyAddedConvention, ISkipNavigationAddedConvention
Héritage
BackingFieldConvention
Attributs
Implémente

Remarques

Le type de champ doit être d’un type pouvant être affecté au type de propriété ou à partir du type de propriété. Si plusieurs champs correspondants sont trouvés, une exception est levée.

Pour plus d’informations et d’exemples, consultez les conventions de génération de modèles.

Constructeurs

Nom Description
BackingFieldConvention(ProviderConventionSetBuilderDependencies)

Crée une instance de BackingFieldConvention.

Propriétés

Nom Description
Dependencies

Dépendances pour ce service.

Méthodes

Nom Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Appelé après l’ajout d’une propriété complexe à un objet de type.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Appelé après la finalisation d’un modèle.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Appelé lorsqu’un modèle est finalisé.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Appelé après l’ajout d’une navigation au type d’entité.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Appelé après l’ajout d’une navigation au type d’entité.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Appelé après l’ajout d’une propriété au type d’entité.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Appelé après l’ajout d’une navigation ignorée au type d’entité.

S’applique à