Bagikan melalui


RelationalSqlGenerationHelper.EscapeLiteral Metode

Definisi

Overload

EscapeLiteral(String)
Kedaluwarsa.

Menghasilkan representasi SQL yang lolos dari nilai harfiah.

EscapeLiteral(StringBuilder, String)
Kedaluwarsa.

Menulis representasi SQL yang lolos dari nilai harfiah.

EscapeLiteral(String)

Perhatian

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

Menghasilkan representasi SQL yang lolos dari nilai harfiah.

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

Parameter

literal
String

Nilai yang akan diloloskan.

Mengembalikan

String yang dihasilkan.

Penerapan

Atribut

Berlaku untuk

EscapeLiteral(StringBuilder, String)

Perhatian

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

Menulis representasi SQL yang lolos dari nilai harfiah.

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)

Parameter

builder
StringBuilder

StringBuilder untuk menulis string yang dihasilkan.

literal
String

Nilai yang akan diloloskan.

Penerapan

Atribut

Berlaku untuk