RelationalSqlGenerationHelper.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 virtual string GenerateLiteral (object value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
abstract member GenerateLiteral : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> string
override this.GenerateLiteral : obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> string
Public Overridable 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.

Implements

Applies to

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

Writes the SQL representation of a literal value.

public virtual 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
override this.GenerateLiteral : System.Text.StringBuilder * obj * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
Public Overridable 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.

Implements

Applies to