UpdateSqlGenerator.AppendWhereCondition 方法

定义

重载

AppendWhereCondition(StringBuilder, ColumnModification, Boolean)

WHERE 给定列追加条件。

AppendWhereCondition(StringBuilder, IColumnModification, Boolean)

WHERE 给定列追加条件。

AppendWhereCondition(StringBuilder, ColumnModification, Boolean)

Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs

WHERE 给定列追加条件。

protected virtual void AppendWhereCondition (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.ColumnModification columnModification, bool useOriginalValue);
abstract member AppendWhereCondition : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.ColumnModification * bool -> unit
override this.AppendWhereCondition : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.ColumnModification * bool -> unit
Protected Overridable Sub AppendWhereCondition (commandStringBuilder As StringBuilder, columnModification As ColumnModification, useOriginalValue As Boolean)

参数

commandStringBuilder
StringBuilder

SQL 应追加到的生成器。

columnModification
ColumnModification

要为其生成条件的列。

useOriginalValue
Boolean

如果 true为 ,则将在条件中使用原始值,否则将使用当前值。

适用于

AppendWhereCondition(StringBuilder, IColumnModification, Boolean)

Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs
Source:
UpdateSqlGenerator.cs

WHERE 给定列追加条件。

protected virtual void AppendWhereCondition (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IColumnModification columnModification, bool useOriginalValue);
abstract member AppendWhereCondition : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IColumnModification * bool -> unit
override this.AppendWhereCondition : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IColumnModification * bool -> unit
Protected Overridable Sub AppendWhereCondition (commandStringBuilder As StringBuilder, columnModification As IColumnModification, useOriginalValue As Boolean)

参数

commandStringBuilder
StringBuilder

SQL 应追加到的生成器。

columnModification
IColumnModification

要为其生成条件的列。

useOriginalValue
Boolean

如果 true为 ,则将在条件中使用原始值,否则将使用当前值。

适用于