語言

SqlServerOutputClauseConvention 類別

定義

一種慣例,將有觸發器的表格設定為在儲存變更時不使用 OUTPUT 子句。

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

備註

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

建構函式

名稱 Description
SqlServerOutputClauseConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。SqlServerDbFunctionConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

RelationalDependencies

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

方法

名稱 Description
ProcessTriggerAdded(IConventionTriggerBuilder, IConventionContext<IConventionTriggerBuilder>)

在實體類型中加入觸發器後呼叫。

ProcessTriggerRemoved(IConventionEntityTypeBuilder, IConventionTrigger, IConventionContext<IConventionTrigger>)

在觸發器從實體類型移除後呼叫。

適用於