SqliteEntityTypeMappingFragmentExtensions.UseSqlReturningClause Method

Definition

Overloads

UseSqlReturningClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

UseSqlReturningClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

UseSqlReturningClause(IMutableEntityTypeMappingFragment, Nullable<Boolean>)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

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

Parameters

fragment
IMutableEntityTypeMappingFragment

The entity type mapping fragment.

useSqlReturningClause
Nullable<Boolean>

The value to set.

Applies to

UseSqlReturningClause(IConventionEntityTypeMappingFragment, Nullable<Boolean>, Boolean)

Sets a value indicating whether to use the SQL RETURNING clause when saving changes to the table. The RETURNING clause is incompatible with certain Sqlite features, such as virtual tables or tables with AFTER triggers.

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

Parameters

fragment
IConventionEntityTypeMappingFragment

The entity type mapping fragment.

useSqlReturningClause
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to