Langue

RelationalPropertyJsonPropertyNameAttributeConvention Classe

Définition

Convention qui configure le nom de propriété JSON en fonction de l’application JsonPropertyNameAttribute.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RelationalPropertyJsonPropertyNameAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.Text.Json.Serialization.JsonPropertyNameAttribute>
public class RelationalPropertyJsonPropertyNameAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.Text.Json.Serialization.JsonPropertyNameAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RelationalPropertyJsonPropertyNameAttributeConvention = class
    inherit PropertyAttributeConventionBase<JsonPropertyNameAttribute>
type RelationalPropertyJsonPropertyNameAttributeConvention = class
    inherit PropertyAttributeConventionBase<JsonPropertyNameAttribute>
Public Class RelationalPropertyJsonPropertyNameAttributeConvention
Inherits PropertyAttributeConventionBase(Of JsonPropertyNameAttribute)
Héritage
RelationalPropertyJsonPropertyNameAttributeConvention
Attributs

Remarques

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

Constructeurs

Nom Description
RelationalPropertyJsonPropertyNameAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Crée une instance de RelationalPropertyJsonPropertyNameAttributeConvention.

Propriétés

Nom Description
Dependencies

Dépendances pour ce service.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

Dépendances spécifiques au fournisseur relationnel 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.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Appelé après la modification du champ de stockage d’une propriété complexe.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Appelé après l’ajout d’une propriété complexe à un type avec un attribut sur la propriété ou le champ CLR associé.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, JsonPropertyNameAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Appelé après la modification du champ de stockage d’une propriété.

(Hérité de PropertyAttributeConventionBase<TAttribute>)

S’applique à