Share via


SqlServerEntityTypeExtensions.IsSqlOutputClauseUsed 方法

定义

重载

IsSqlOutputClauseUsed(IReadOnlyEntityType)

返回一个值,该值指示在保存对表所做的更改时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如具有触发器的表。

IsSqlOutputClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

返回一个值,该值指示在保存对指定表所做的更改时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如具有触发器的表。

IsSqlOutputClauseUsed(IReadOnlyEntityType)

返回一个值,该值指示在保存对表所做的更改时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如具有触发器的表。

public static bool IsSqlOutputClauseUsed (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member IsSqlOutputClauseUsed : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> bool
<Extension()>
Public Function IsSqlOutputClauseUsed (entityType As IReadOnlyEntityType) As Boolean

参数

entityType
IReadOnlyEntityType

实体类型。

返回

true 如果 SQL OUTPUT 子句用于保存对表所做的更改,则为 。

适用于

IsSqlOutputClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

返回一个值,该值指示在保存对指定表所做的更改时是否使用 SQL OUTPUT 子句。 OUTPUT 子句与某些SQL Server功能不兼容,例如具有触发器的表。

public static bool IsSqlOutputClauseUsed (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member IsSqlOutputClauseUsed : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType * StoreObjectIdentifier -> bool
<Extension()>
Public Function IsSqlOutputClauseUsed (entityType As IReadOnlyEntityType, ByRef storeObject As StoreObjectIdentifier) As Boolean

参数

entityType
IReadOnlyEntityType

实体类型。

storeObject
StoreObjectIdentifier

类似表的存储对象的标识符。

返回

一个值,该值指示是否使用 SQL OUTPUT 子句来保存对关联表所做的更改。

适用于