语言

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数据库。

构造函数

名称 说明
SqlServerOutputClauseConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 SqlServerDbFunctionConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

名称 说明
ProcessTriggerAdded(IConventionTriggerBuilder, IConventionContext<IConventionTriggerBuilder>)

在将触发器添加到实体类型后调用。

ProcessTriggerRemoved(IConventionEntityTypeBuilder, IConventionTrigger, IConventionContext<IConventionTrigger>)

在从实体类型中删除触发器后调用。

适用于