語言

ISqlExpressionFactory.Fragment 方法

定義

多載

名稱 Description
Fragment(String)

建立 SqlExpression 一個代表 SQL 標記的新文件。

Fragment(String, Type, RelationalTypeMapping)

建立 SqlExpression 一個代表 SQL 標記的新文件。

Fragment(String)

來源:
ISqlExpressionFactory.cs
來源:
ISqlExpressionFactory.cs
來源:
ISqlExpressionFactory.cs

建立 SqlExpression 一個代表 SQL 標記的新文件。

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression Fragment(string sql);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Fragment(string sql);
abstract member Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression
abstract member Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Fragment (sql As String) As SqlFragmentExpression
Public Function Fragment (sql As String) As SqlExpression

參數

sql
String

一個用來列印 SQL 樹的字串標記。

傳回

一個表示 SQL 標記的表達式。

適用於

Fragment(String, Type, RelationalTypeMapping)

來源:
ISqlExpressionFactory.cs
來源:
ISqlExpressionFactory.cs

建立 SqlExpression 一個代表 SQL 標記的新文件。

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Fragment(string sql, Type? type = default, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Fragment : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Fragment (sql As String, Optional type As Type = Nothing, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlExpression

參數

sql
String

一個用來列印 SQL 樹的字串標記。

type
Type

那個 Type 表達。 預設為 void。

typeMapping
RelationalTypeMapping

與 RelationalTypeMapping 這個詞有關。

傳回

一個表示 SQL 標記的表達式。

適用於