RelationalSqlGenerationHelper.GenerateLiteral 方法

定义

重载

GenerateLiteral(Object, RelationalTypeMapping)

生成文本值的 SQL 表示形式。

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

写入文本值的 SQL 表示形式。

GenerateLiteral(Object, RelationalTypeMapping)

生成文本值的 SQL 表示形式。

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

参数

value
Object

文字值。

typeMapping
RelationalTypeMapping

用于此值的可选类型映射。

返回

生成的字符串。

实现

适用于

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

写入文本值的 SQL 表示形式。

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)

参数

builder
StringBuilder

StringBuilder 向其写入生成的字符串的 。

value
Object

文字值。

typeMapping
RelationalTypeMapping

用于此值的可选类型映射。

实现

适用于