語言

RelationalNavigationJsonPropertyNameAttributeConvention 類別

定義

一個規範,將 JSON 元素名稱配置為根據屬性映射到 JSON JsonPropertyNameAttribute 的導航屬性。

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RelationalNavigationJsonPropertyNameAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.Text.Json.Serialization.JsonPropertyNameAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class RelationalNavigationJsonPropertyNameAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.Text.Json.Serialization.JsonPropertyNameAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RelationalNavigationJsonPropertyNameAttributeConvention = class
    inherit NavigationAttributeConventionBase<JsonPropertyNameAttribute>
    interface INavigationAddedConvention
    interface IConvention
type RelationalNavigationJsonPropertyNameAttributeConvention = class
    inherit NavigationAttributeConventionBase<JsonPropertyNameAttribute>
    interface INavigationAddedConvention
    interface IConvention
Public Class RelationalNavigationJsonPropertyNameAttributeConvention
Inherits NavigationAttributeConventionBase(Of JsonPropertyNameAttribute)
Implements INavigationAddedConvention
繼承
RelationalNavigationJsonPropertyNameAttributeConvention
屬性
實作

備註

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

建構函式

名稱 Description
RelationalNavigationJsonPropertyNameAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalNavigationJsonPropertyNameAttributeConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
RelationalDependencies

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

方法

名稱 Description
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

在模型中加入實體類型後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

在新增實體類型到模型後,對每個帶有屬性的導航屬性呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

在實體類型的基礎類型變更後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

在改變實體類型的基礎類型後,對每個帶有屬性的導航屬性呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

在忽略某個實體類型後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

在忽略某個實體類型後,每個具有屬性的導航屬性都會被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)

在具有屬性的導航屬性後被呼叫,則被忽略。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

在忽略某個實體類型的成員後被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

在移除某個實體類型後才被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

在移除實體類型後,呼叫每個具有屬性的導航屬性。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

在外鍵主端變更後被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

在外鍵主端變更後被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

在新增導航到實體類型後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, JsonPropertyNameAttribute, IConventionContext<IConventionNavigationBuilder>)

當帶有屬性的導航屬性被加入實體類型後,會被呼叫。

ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

當帶有屬性的導航屬性被加入實體類型後,會被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

在實體類型中加入跳過導覽後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

在一個帶有屬性的 Skip Navigation 屬性加入實體類型後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

在忽略某個實體類型後呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

在忽略某個實體類型後,每個具有屬性的導航屬性都會被呼叫。

(繼承來源 NavigationAttributeConventionBase<TAttribute>)

適用於