Partilhar via


RelationalSqlGenerationHelper.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)

Origem:
RelationalSqlGenerationHelper.cs
Origem:
RelationalSqlGenerationHelper.cs

Cuidado

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

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

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

Parâmetros

literal
String

O valor a ser escapado.

Retornos

A cadeia de caracteres gerada.

Implementações

Atributos

Aplica-se a

EscapeLiteral(StringBuilder, String)

Origem:
RelationalSqlGenerationHelper.cs
Origem:
RelationalSqlGenerationHelper.cs

Cuidado

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

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

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)

Parâmetros

builder
StringBuilder

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

literal
String

O valor a ser escapado.

Implementações

Atributos

Aplica-se a