共用方式為


ISqlGenerationHelper.EscapeLiteral 方法

定義

多載

EscapeLiteral(String)
已淘汰.

產生常值之逸出 SQL 標記法。

EscapeLiteral(StringBuilder, String)
已淘汰.

寫入常值逸出 SQL 標記法。

EscapeLiteral(String)

警告

Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.

產生常值之逸出 SQL 標記法。

public string EscapeLiteral (string literal);
[System.Obsolete("Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.")]
public string EscapeLiteral (string literal);
abstract member EscapeLiteral : string -> string
[<System.Obsolete("Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.")>]
abstract member EscapeLiteral : string -> string
Public Function EscapeLiteral (literal As String) As String

參數

literal
String

要逸出的值。

傳回

產生的字串。

屬性

適用於

EscapeLiteral(StringBuilder, String)

警告

Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.

寫入常值逸出 SQL 標記法。

public void EscapeLiteral (System.Text.StringBuilder builder, string literal);
[System.Obsolete("Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.")]
public void EscapeLiteral (System.Text.StringBuilder builder, string literal);
abstract member EscapeLiteral : System.Text.StringBuilder * string -> unit
[<System.Obsolete("Use IRelationalTypeMappingSource.GetMapping(typeof(string)).GenerateSqlLiteral() instead.")>]
abstract member EscapeLiteral : System.Text.StringBuilder * string -> unit
Public Sub EscapeLiteral (builder As StringBuilder, literal As String)

參數

builder
StringBuilder

StringBuilder 寫入所產生字串的 。

literal
String

要逸出的值。

屬性

適用於