Lenguaje

RelationalPropertyJsonPropertyNameAttributeConvention Clase

Definición

Convención que configura el nombre de propiedad JSON basado en el aplicado 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)
Herencia
RelationalPropertyJsonPropertyNameAttributeConvention
Atributos

Comentarios

Consulte Convenciones de creación de modelos para obtener más información y ejemplos.

Constructores

Nombre Description
RelationalPropertyJsonPropertyNameAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Crea una nueva instancia de RelationalPropertyJsonPropertyNameAttributeConvention.

Propiedades

Nombre Description
Dependencies

Dependencias de este servicio.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

Dependencias específicas del proveedor relacional para este servicio.

Métodos

Nombre Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Se llama después de agregar una propiedad compleja a un objeto similar a un tipo.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad compleja.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad compleja a un tipo con un atributo en la propiedad o campo CLR asociado.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Se llama después de agregar una propiedad al tipo de entidad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, JsonPropertyNameAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)

Se aplica a