共用方式為


SqlServerEntityTypeMappingFragmentExtensions.UseSqlOutputClause 方法

定義

多載

UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

設定是否要在將變更儲存至相關聯的資料表時使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

UseSqlOutputClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

設定是否要在將變更儲存至相關聯的資料表時使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

設定是否要在將變更儲存至相關聯的資料表時使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

public static void UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityTypeMappingFragment fragment, bool? useSqlOutputClause);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityTypeMappingFragment * Nullable<bool> -> unit
<Extension()>
Public Sub UseSqlOutputClause (fragment As IMutableEntityTypeMappingFragment, useSqlOutputClause As Nullable(Of Boolean))

參數

fragment
IMutableEntityTypeMappingFragment

實體類型對應片段。

useSqlOutputClause
Nullable<Boolean>

要設定的值。

適用於

UseSqlOutputClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

設定是否要在將變更儲存至相關聯的資料表時使用 SQL OUTPUT 子句。 OUTPUT 子句與特定SQL Server功能不相容,例如具有觸發程式的資料表。

public static bool? UseSqlOutputClause (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityTypeMappingFragment fragment, bool? useSqlOutputClause, bool fromDataAnnotation = false);
static member UseSqlOutputClause : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityTypeMappingFragment * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function UseSqlOutputClause (fragment As IConventionEntityTypeMappingFragment, useSqlOutputClause As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

參數

fragment
IConventionEntityTypeMappingFragment

實體類型對應片段。

useSqlOutputClause
Nullable<Boolean>

要設定的值。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於