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 子句來儲存相關聯資料表的變更。

適用於