共用方式為


RelationalDbFunctionAttributeConvention 類別

定義

根據以 標記 DbFunctionAttribute 之內容上的公用靜態方法設定模型函式對應的慣例。

public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class RelationalDbFunctionAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelAnnotationChangedConvention
type RelationalDbFunctionAttributeConvention = class
    interface IModelInitializedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelAnnotationChangedConvention, IModelInitializedConvention
Public Class RelationalDbFunctionAttributeConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
繼承
RelationalDbFunctionAttributeConvention
實作

備註

如需詳細資訊和範例,請參閱 模型建置慣例資料庫函 式。

建構函式

RelationalDbFunctionAttributeConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立 RelationalDbFunctionAttributeConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

RelationalDependencies

此服務的關聯式提供者特定相依性。

方法

ProcessDbFunctionAdded(IConventionDbFunctionBuilder, IConventionContext)

當 加入至模型時 IConventionDbFunction 呼叫。

ProcessModelAnnotationChanged(IConventionModelBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

在模型上變更批註之後呼叫。

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

當模型完成時呼叫。

ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在初始化模型之後呼叫。

適用於