SqlServerEntityTypeMappingFragmentExtensions.UseSqlOutputClause Method

Definition

Overloads

UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

Sets whether to use the SQL OUTPUT clause when saving changes to the associated table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

UseSqlOutputClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

Sets whether to use the SQL OUTPUT clause when saving changes to the associated table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

UseSqlOutputClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

Sets whether to use the SQL OUTPUT clause when saving changes to the associated table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

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))

Parameters

fragment
IMutableEntityTypeMappingFragment

The entity type mapping fragment.

useSqlOutputClause
Nullable<Boolean>

The value to set.

Applies to

UseSqlOutputClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

Sets whether to use the SQL OUTPUT clause when saving changes to the associated table. The OUTPUT clause is incompatible with certain SQL Server features, such as tables with triggers.

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)

Parameters

fragment
IConventionEntityTypeMappingFragment

The entity type mapping fragment.

useSqlOutputClause
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to