共用方式為


RelationalSqlGenerationHelper.EscapeLiteral 方法

定義

多載

EscapeLiteral(String)
已淘汰.

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

EscapeLiteral(StringBuilder, String)
已淘汰.

寫入常值逸出 SQL 標記法。

EscapeLiteral(String)

來源:
RelationalSqlGenerationHelper.cs
來源:
RelationalSqlGenerationHelper.cs

警告

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

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

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

參數

literal
String

要逸出的值。

傳回

產生的字串。

實作

屬性

適用於

EscapeLiteral(StringBuilder, String)

來源:
RelationalSqlGenerationHelper.cs
來源:
RelationalSqlGenerationHelper.cs

警告

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

寫入常值逸出 SQL 標記法。

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

參數

builder
StringBuilder

StringBuilder 寫入所產生字串的 。

literal
String

要逸出的值。

實作

屬性

適用於