Compartir a través de


ISqlGenerationHelper.EscapeLiteral Método

Definición

Sobrecargas

EscapeLiteral(String)
Obsoletos.

Genera la representación SQL con escape de un valor literal.

EscapeLiteral(StringBuilder, String)
Obsoletos.

Escribe la representación DE SQL con escape de un valor literal.

EscapeLiteral(String)

Precaución

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

Genera la representación SQL con escape de un valor literal.

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

Parámetros

literal
String

Valor que se va a escapar.

Devoluciones

Cadena generada.

Atributos

Se aplica a

EscapeLiteral(StringBuilder, String)

Precaución

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

Escribe la representación DE SQL con escape de un valor literal.

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)

Parámetros

builder
StringBuilder

objeto en el StringBuilder que se va a escribir la cadena generada.

literal
String

Valor que se va a escapar.

Atributos

Se aplica a