共用方式為


ISqlGenerationHelper.GenerateLiteral 方法

定義

多載

GenerateLiteral(Object, RelationalTypeMapping)

產生常值 SQL 標記法。

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

寫入常值 SQL 標記法。

GenerateLiteral(Object, RelationalTypeMapping)

產生常值 SQL 標記法。

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

參數

value
Object

常值。

typeMapping
RelationalTypeMapping

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

傳回

產生的字串。

適用於

GenerateLiteral(StringBuilder, Object, RelationalTypeMapping)

寫入常值 SQL 標記法。

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)

參數

builder
StringBuilder

StringBuilder 寫入所產生字串的 。

value
Object

常值。

typeMapping
RelationalTypeMapping

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

適用於