語言

UpdateSqlGenerator.AppendSqlLiteral 方法

定義

將 的 modification 字面值附加到正在建立的 commandStringBuilder指令上。

protected static void AppendSqlLiteral(System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IColumnModification modification, string? tableName, string? schema);
static member AppendSqlLiteral : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IColumnModification * string * string -> unit
Protected Shared Sub AppendSqlLiteral (commandStringBuilder As StringBuilder, modification As IColumnModification, tableName As String, schema As String)

參數

commandStringBuilder
StringBuilder

應該附加 SQL 片段的建構器。

modification
IColumnModification

欄位修改,其字面應該被附加。

tableName
String

欄位的表格名稱,當拋出例外時使用。

schema
String

欄位的架構,當拋出例外時所用。

適用於