UpdateSqlGenerator.AppendWhereCondition 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AppendWhereCondition(StringBuilder, ColumnModification, Boolean) |
为 |
AppendWhereCondition(StringBuilder, IColumnModification, Boolean) |
为 |
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
为 ,则将在条件中使用原始值,否则将使用当前值。