Share via


ISqlGenerationHelper.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 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

Parameters

literal
String

The value to be escaped.

Returns

The generated string.

Attributes

Applies to

EscapeLiteral(StringBuilder, String)

Caution

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

Writes the escaped SQL representation of a literal value.

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)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

literal
String

The value to be escaped.

Attributes

Applies to