RelationalSqlGenerationHelper.GenerateLiteral 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
用於此值的選擇性型別對應。