語言

FromSqlExpression 類別

定義

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

[System.Runtime.CompilerServices.Nullable(0)]
public class FromSqlExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ITableBasedExpression
public class FromSqlExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase
public class FromSqlExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.IClonableTableExpressionBase
[System.Runtime.CompilerServices.Nullable(0)]
public class FromSqlExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.IClonableTableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ITableBasedExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type FromSqlExpression = class
    inherit TableExpressionBase
    interface ITableBasedExpression
type FromSqlExpression = class
    inherit TableExpressionBase
type FromSqlExpression = class
    inherit TableExpressionBase
    interface IClonableTableExpressionBase
[<System.Runtime.CompilerServices.Nullable(0)>]
type FromSqlExpression = class
    inherit TableExpressionBase
    interface ITableBasedExpression
    interface IClonableTableExpressionBase
Public Class FromSqlExpression
Inherits TableExpressionBase
Implements ITableBasedExpression
Public Class FromSqlExpression
Inherits TableExpressionBase
Public Class FromSqlExpression
Inherits TableExpressionBase
Implements IClonableTableExpressionBase
Public Class FromSqlExpression
Inherits TableExpressionBase
Implements IClonableTableExpressionBase, ITableBasedExpression
繼承
FromSqlExpression
屬性
實作

建構函式

名稱 Description
FromSqlExpression(ITableBase, String, Expression)

建立一個新的類別實例 FromSqlExpression 。

FromSqlExpression(String, Expression, String)
已淘汰.

建立一個新的類別實例 FromSqlExpression 。

FromSqlExpression(String, ITableBase, String, Expression, IReadOnlyDictionary<String,IAnnotation>)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

FromSqlExpression(String, ITableBase, String, Expression)

建立一個新的類別實例 FromSqlExpression 。

FromSqlExpression(String, String, Expression)

建立一個新的類別實例 FromSqlExpression 。

屬性

名稱 Description
Alias

此表所指派的別名來源。

Alias

此表所指派的別名來源。

(繼承來源 TableExpressionBase)
Annotations

一組與此表表達式相關的索引註解集合。

(繼承來源 TableExpressionBase)
Arguments

使用者提供的參數會傳遞給自訂 SQL。

NodeType

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

(繼承來源 TableExpressionBase)
Sql

使用者提供的自訂 SQL 用於資料表原始碼。

Table

如果有,則與 ITableBase 給定的表格來源相關聯, null 否則。

Type

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

(繼承來源 TableExpressionBase)

方法

名稱 Description
AddAnnotation(String, Object)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 TableExpressionBase)
Clone()

建立一個新的物件,該物件是目前實例的複製品。

Clone(String, ExpressionVisitor)

建立一個新的物件,該物件是目前實例的複製品。

CreateWithAnnotations(IEnumerable<IAnnotation>)

建立一個像這樣的物件,並附上指定的註解。

Equals(Object)

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 TableExpressionBase)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 TableExpressionBase)
GetHashCode()

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

GetRequiredAlias()

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

(繼承來源 TableExpressionBase)
Print(ExpressionPrinter)

利用 ExpressionPrinter建立給定表達式的可列印字串表示。

PrintAnnotations(ExpressionPrinter)

使用 ExpressionPrinter。

(繼承來源 TableExpressionBase)
Quote()

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

Update(Expression)

會建立一個新的表達式,類似這個,但使用提供的子節點。 如果所有子節點相同,則會回傳這個表達式。

VisitChildren(ExpressionVisitor)

一個表達式,代表一個包含使用者自訂 SQL 的子查詢資料表來源。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

WithAlias(String)

回傳一份帶有新別名的當前 TableExpressionBase 檔案副本。

WithAnnotations(IReadOnlyDictionary<String,IAnnotation>)

建立一個像這樣的物件,並附上指定的註解。

明確介面實作

名稱 Description
IPrintableExpression.Print(ExpressionPrinter)

利用 ExpressionPrinter建立給定表達式的可列印字串表示。

(繼承來源 TableExpressionBase)

擴充方法

名稱 Description
UnwrapJoin(TableExpressionBase)

若給定 table 為 JoinExpressionBase,則返回其所連接的表格。 否則,返回 table。

適用於