ISqlGenerationHelper.GenerateLiteral Method

Definition

Overloads

GenerateLiteral(Object, RelationalTypeMapping)

Generates the SQL representation of a literal value.

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

Writes the SQL representation of a literal value.

GenerateLiteral(Object, RelationalTypeMapping)

Generates the SQL representation of a literal value.

public string GenerateLiteral (object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
abstract member GenerateLiteral : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> string
Public Function GenerateLiteral (value As Object, Optional typeMapping As RelationalTypeMapping = Nothing) As String

Parameters

value
Object

The literal value.

typeMapping
RelationalTypeMapping

An optional type mapping that is used for this value.

Returns

The generated string.

Applies to

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

Writes the SQL representation of a literal value.

public void GenerateLiteral (System.Text.StringBuilder builder, object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
abstract member GenerateLiteral : System.Text.StringBuilder * obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
Public Sub GenerateLiteral (builder As StringBuilder, value As Object, Optional typeMapping As RelationalTypeMapping = Nothing)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Object

The literal value.

typeMapping
RelationalTypeMapping

An optional type mapping that is used for this value.

Applies to