共用方式為


ICSharpHelper.Statement(Expression, ISet<String>) 方法

定義

將代表 語句的節點轉譯成會產生它的原始程式碼。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public string Statement (System.Linq.Expressions.Expression node, System.Collections.Generic.ISet<string> collectedNamespaces);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member Statement : System.Linq.Expressions.Expression * System.Collections.Generic.ISet<string> -> string
Public Function Statement (node As Expression, collectedNamespaces As ISet(Of String)) As String

參數

node
Expression

要轉換的節點。

collectedNamespaces
ISet<String>

翻譯程式碼所需的任何命名空間都會新增至此集合。

傳回

會產生 node 的原始程式碼。

屬性

備註

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不會有任何通知。 您應該只在程式碼中直接使用它,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

適用於