Compartilhar via


ISqlGenerationHelper.EscapeLiteral Método

Definição

Sobrecargas

EscapeLiteral(String)
Obsoleto.

Gera a representação SQL de escape de um valor literal.

EscapeLiteral(StringBuilder, String)
Obsoleto.

Grava a representação SQL de escape de um valor literal.

EscapeLiteral(String)

Cuidado

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

Gera a representação SQL de escape de um 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

O valor a ser escapado.

Retornos

A cadeia de caracteres gerada.

Atributos

Aplica-se a

EscapeLiteral(StringBuilder, String)

Cuidado

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

Grava a representação SQL de escape de um 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

O StringBuilder para o qual gravar a cadeia de caracteres gerada.

literal
String

O valor a ser escapado.

Atributos

Aplica-se a