共用方式為


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

用於此值的選擇性型別對應。

實作

適用於