語言

RelationalMapToJsonConvention 類別

定義

一個用來設定映射到 JSON 欄位的實體預設設定的慣例。

[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalMapToJsonConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Runtime.CompilerServices.Nullable(0)]
public class RelationalMapToJsonConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class RelationalMapToJsonConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalMapToJsonConvention = class
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type RelationalMapToJsonConvention = class
    interface IModelFinalizingConvention
    interface IConvention
type RelationalMapToJsonConvention = class
    interface IEntityTypeAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class RelationalMapToJsonConvention
Implements IEntityTypeAnnotationChangedConvention, IModelFinalizingConvention
Public Class RelationalMapToJsonConvention
Implements IModelFinalizingConvention
繼承
RelationalMapToJsonConvention
屬性
實作

備註

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

建構函式

名稱 Description
RelationalMapToJsonConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。RelationalMapToJsonConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

RelationalDependencies

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

方法

名稱 Description
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)
已淘汰.

在某個實體類型更改註解後呼叫。

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

當模型正在定案時會被召喚。

適用於