SqlServerEntityTypeExtensions.IsSqlOutputClauseUsed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 子句來儲存相關聯資料表的變更。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應