RelationalPropertyJsonPropertyNameAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje nazwę właściwości JSON na podstawie zastosowanego JsonPropertyNameAttributeelementu .

public class RelationalPropertyJsonPropertyNameAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.Text.Json.Serialization.JsonPropertyNameAttribute>
type RelationalPropertyJsonPropertyNameAttributeConvention = class
    inherit PropertyAttributeConventionBase<JsonPropertyNameAttribute>
Public Class RelationalPropertyJsonPropertyNameAttributeConvention
Inherits PropertyAttributeConventionBase(Of JsonPropertyNameAttribute)
Dziedziczenie
RelationalPropertyJsonPropertyNameAttributeConvention

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .

Konstruktory

RelationalPropertyJsonPropertyNameAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy RelationalPropertyJsonPropertyNameAttributeConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

Zależności specyficzne dla dostawcy relacyjnego dla tej usługi.

Metody

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wywoływana po dodaniu właściwości złożonej do obiektu przypominającego typ.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływane po zmianie pola tworzenia kopii zapasowej dla właściwości złożonej.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości złożonej do typu z atrybutem we skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Wywoływana po dodaniu właściwości do typu jednostki.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, JsonPropertyNameAttribute, MemberInfo, IConventionContext)

Konwencja, która konfiguruje nazwę właściwości JSON na podstawie zastosowanego JsonPropertyNameAttributeelementu .

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości do typu jednostki z atrybutem we skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływane po zmianie pola tworzenia kopii zapasowej dla właściwości.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)

Dotyczy