Share via


RelationalSqlGenerationHelper.GenerateLiteralValue Method

Definition

Overloads

GenerateLiteralValue(StringBuilder, Byte[])

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Char)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, DbType)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, DateTime)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, DateTimeOffset)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Decimal)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Double)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Enum)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Int16)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Byte)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Int32)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Int64)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Object)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Single)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, TimeSpan)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, String, RelationalTypeMapping)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Guid)

Writes the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Boolean)

Writes the SQL representation of a literal value.

GenerateLiteralValue(Enum)

Generates the SQL representation of a literal value.

GenerateLiteralValue(TimeSpan)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Boolean)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Byte)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Byte[])

Generates the SQL representation of a literal value.

GenerateLiteralValue(Char)

Generates the SQL representation of a literal value.

GenerateLiteralValue(String, RelationalTypeMapping)

Generates the SQL representation of a literal value.

GenerateLiteralValue(DateTime)

Generates the SQL representation of a literal value.

GenerateLiteralValue(DateTimeOffset)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Decimal)

Generates the SQL representation of a literal value.

GenerateLiteralValue(DbType)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Guid)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Int16)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Int32)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Int64)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Object)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Single)

Generates the SQL representation of a literal value.

GenerateLiteralValue(Double)

Generates the SQL representation of a literal value.

GenerateLiteralValue(StringBuilder, Byte[])

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, byte[] value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * byte[] -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * byte[] -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Byte())

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Byte[]

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Char)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, char value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * char -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * char -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Char)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Char

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, DbType)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, System.Data.DbType value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * System.Data.DbType -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * System.Data.DbType -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As DbType)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
DbType

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, DateTime)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, DateTime value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * DateTime -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * DateTime -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As DateTime)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
DateTime

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, DateTimeOffset)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, DateTimeOffset value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * DateTimeOffset -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * DateTimeOffset -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As DateTimeOffset)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
DateTimeOffset

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Decimal)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, decimal value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * decimal -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * decimal -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Decimal)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Decimal

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Double)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, double value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * double -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * double -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Double)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Double

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Enum)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, Enum value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * Enum -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * Enum -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Enum)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Enum

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Int16)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, short value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * int16 -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * int16 -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Short)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Int16

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Byte)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, byte value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * byte -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * byte -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Byte)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Byte

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Int32)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, int value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * int -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * int -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Integer)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Int32

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Int64)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, long value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * int64 -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * int64 -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Long)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Int64

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Object)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, object value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * obj -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * obj -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Object)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Object

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Single)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, float value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * single -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * single -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Single)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Single

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, TimeSpan)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, TimeSpan value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * TimeSpan -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * TimeSpan -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As TimeSpan)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
TimeSpan

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, String, RelationalTypeMapping)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, string value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping);
abstract member GenerateLiteralValue : System.Text.StringBuilder * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As String, typeMapping As RelationalTypeMapping)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
String

The literal value.

typeMapping
RelationalTypeMapping

An optional type mapping that is used for this value.

Applies to

GenerateLiteralValue(StringBuilder, Guid)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, Guid value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * Guid -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * Guid -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Guid)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Guid

The literal value.

Applies to

GenerateLiteralValue(StringBuilder, Boolean)

Writes the SQL representation of a literal value.

protected virtual void GenerateLiteralValue (System.Text.StringBuilder builder, bool value);
abstract member GenerateLiteralValue : System.Text.StringBuilder * bool -> unit
override this.GenerateLiteralValue : System.Text.StringBuilder * bool -> unit
Protected Overridable Sub GenerateLiteralValue (builder As StringBuilder, value As Boolean)

Parameters

builder
StringBuilder

The StringBuilder to write generated string to.

value
Boolean

The literal value.

Applies to

GenerateLiteralValue(Enum)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (Enum value);
abstract member GenerateLiteralValue : Enum -> string
override this.GenerateLiteralValue : Enum -> string
Protected Overridable Function GenerateLiteralValue (value As Enum) As String

Parameters

value
Enum

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(TimeSpan)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (TimeSpan value);
abstract member GenerateLiteralValue : TimeSpan -> string
override this.GenerateLiteralValue : TimeSpan -> string
Protected Overridable Function GenerateLiteralValue (value As TimeSpan) As String

Parameters

value
TimeSpan

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Boolean)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (bool value);
abstract member GenerateLiteralValue : bool -> string
override this.GenerateLiteralValue : bool -> string
Protected Overridable Function GenerateLiteralValue (value As Boolean) As String

Parameters

value
Boolean

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Byte)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (byte value);
abstract member GenerateLiteralValue : byte -> string
override this.GenerateLiteralValue : byte -> string
Protected Overridable Function GenerateLiteralValue (value As Byte) As String

Parameters

value
Byte

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Byte[])

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (byte[] value);
abstract member GenerateLiteralValue : byte[] -> string
override this.GenerateLiteralValue : byte[] -> string
Protected Overridable Function GenerateLiteralValue (value As Byte()) As String

Parameters

value
Byte[]

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Char)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (char value);
abstract member GenerateLiteralValue : char -> string
override this.GenerateLiteralValue : char -> string
Protected Overridable Function GenerateLiteralValue (value As Char) As String

Parameters

value
Char

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(String, RelationalTypeMapping)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (string value, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping);
abstract member GenerateLiteralValue : string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> string
override this.GenerateLiteralValue : string * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> string
Protected Overridable Function GenerateLiteralValue (value As String, typeMapping As RelationalTypeMapping) As String

Parameters

value
String

The literal value.

typeMapping
RelationalTypeMapping

An optional type mapping that is used for this value.

Returns

The generated string.

Applies to

GenerateLiteralValue(DateTime)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (DateTime value);
abstract member GenerateLiteralValue : DateTime -> string
override this.GenerateLiteralValue : DateTime -> string
Protected Overridable Function GenerateLiteralValue (value As DateTime) As String

Parameters

value
DateTime

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(DateTimeOffset)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (DateTimeOffset value);
abstract member GenerateLiteralValue : DateTimeOffset -> string
override this.GenerateLiteralValue : DateTimeOffset -> string
Protected Overridable Function GenerateLiteralValue (value As DateTimeOffset) As String

Parameters

value
DateTimeOffset

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Decimal)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (decimal value);
abstract member GenerateLiteralValue : decimal -> string
override this.GenerateLiteralValue : decimal -> string
Protected Overridable Function GenerateLiteralValue (value As Decimal) As String

Parameters

value
Decimal

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(DbType)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (System.Data.DbType value);
abstract member GenerateLiteralValue : System.Data.DbType -> string
override this.GenerateLiteralValue : System.Data.DbType -> string
Protected Overridable Function GenerateLiteralValue (value As DbType) As String

Parameters

value
DbType

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Guid)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (Guid value);
abstract member GenerateLiteralValue : Guid -> string
override this.GenerateLiteralValue : Guid -> string
Protected Overridable Function GenerateLiteralValue (value As Guid) As String

Parameters

value
Guid

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Int16)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (short value);
abstract member GenerateLiteralValue : int16 -> string
override this.GenerateLiteralValue : int16 -> string
Protected Overridable Function GenerateLiteralValue (value As Short) As String

Parameters

value
Int16

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Int32)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (int value);
abstract member GenerateLiteralValue : int -> string
override this.GenerateLiteralValue : int -> string
Protected Overridable Function GenerateLiteralValue (value As Integer) As String

Parameters

value
Int32

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Int64)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (long value);
abstract member GenerateLiteralValue : int64 -> string
override this.GenerateLiteralValue : int64 -> string
Protected Overridable Function GenerateLiteralValue (value As Long) As String

Parameters

value
Int64

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Object)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (object value);
abstract member GenerateLiteralValue : obj -> string
override this.GenerateLiteralValue : obj -> string
Protected Overridable Function GenerateLiteralValue (value As Object) As String

Parameters

value
Object

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Single)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (float value);
abstract member GenerateLiteralValue : single -> string
override this.GenerateLiteralValue : single -> string
Protected Overridable Function GenerateLiteralValue (value As Single) As String

Parameters

value
Single

The literal value.

Returns

The generated string.

Applies to

GenerateLiteralValue(Double)

Generates the SQL representation of a literal value.

protected virtual string GenerateLiteralValue (double value);
abstract member GenerateLiteralValue : double -> string
override this.GenerateLiteralValue : double -> string
Protected Overridable Function GenerateLiteralValue (value As Double) As String

Parameters

value
Double

The literal value.

Returns

The generated string.

Applies to