語言

RelationalPropertyJsonPropertyNameAttributeConvention 類別

定義

一個根據所應用 JsonPropertyNameAttribute的 參數配置 JSON 屬性名稱的慣例。

[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)
繼承
RelationalPropertyJsonPropertyNameAttributeConvention
屬性

備註

更多資訊與範例請參閱 模型建構慣例 。

建構函式

名稱 Description
RelationalPropertyJsonPropertyNameAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalPropertyJsonPropertyNameAttributeConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
RelationalDependencies

此服務的關聯提供者專屬相依關係。

方法

名稱 Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

在將複雜屬性加入類型物件後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在複數屬性的背景欄位被更改後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在將複雜屬性加入帶有 CLR 屬性或欄位屬性的型別後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

在物件類型中加入屬性後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, JsonPropertyNameAttribute, MemberInfo, IConventionContext)

在實體類型中加入屬性並對應 CLR 屬性或欄位後呼叫。

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

在實體類型中加入屬性並對應 CLR 屬性或欄位後呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

在某個物業的背景欄位被更改後被呼叫。

(繼承來源 PropertyAttributeConventionBase<TAttribute>)

適用於