SqliteEntityTypeExtensions.IsSqlReturningClauseUsed 方法

定义

重载

IsSqlReturningClauseUsed(IReadOnlyEntityType)

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

IsSqlReturningClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

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

IsSqlReturningClauseUsed(IReadOnlyEntityType)

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

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

参数

entityType
IReadOnlyEntityType

实体类型。

返回

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

适用于

IsSqlReturningClauseUsed(IReadOnlyEntityType, StoreObjectIdentifier)

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

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

参数

entityType
IReadOnlyEntityType

实体类型。

storeObject
StoreObjectIdentifier

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

返回

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

适用于