Compartir a través de


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

Source:
RelationalSqlGenerationHelper.cs
Source:
RelationalSqlGenerationHelper.cs

Precaución

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

Genera la representación SQL con escape de un 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

Valor que se va a escapar.

Devoluciones

Cadena generada.

Implementaciones

Atributos

Se aplica a

EscapeLiteral(StringBuilder, String)

Source:
RelationalSqlGenerationHelper.cs
Source:
RelationalSqlGenerationHelper.cs

Precaución

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

Escribe la representación DE SQL con escape de un 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

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

literal
String

Valor que se va a escapar.

Implementaciones

Atributos

Se aplica a