BackingFieldConvention Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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. |