語言

SqlServerDbFunctionConvention 類別

定義

一個確保 在標誌IsBuiltIn設為 false的資料庫函式中被填充的Schema慣例。

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

備註

更多資訊與範例請參閱模型建構慣例,以及使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫。

建構函式

名稱 Description
SqlServerDbFunctionConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。SqlServerDbFunctionConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

RelationalDependencies

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

方法

名稱 Description
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

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

適用於