Share via


RelationalSqlGenerationHelper.EscapeLiteral Method

Definition

Overloads

EscapeLiteral(String)
Obsolete.

Generates the escaped SQL representation of a literal value.

EscapeLiteral(StringBuilder, String)
Obsolete.

Writes the escaped SQL representation of a literal value.

EscapeLiteral(String)

Caution

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

Generates the escaped SQL representation of a literal value.

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

Parameters

literal
String

The value to be escaped.

Returns

The generated string.

Implements

Attributes

Applies to

EscapeLiteral(StringBuilder, String)

Caution

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

Writes the escaped SQL representation of a literal value.

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)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

literal
String

The value to be escaped.

Implements

Attributes

Applies to