Share via


ICSharpHelper.Statement(Expression, ISet<String>) Method

Definition

Translates a node representing a statement into source code that would produce it.

[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

Parameters

node
Expression

The node to be translated.

collectedNamespaces
ISet<String>

Any namespaces required by the translated code will be added to this set.

Returns

Source code that would produce node.

Attributes

Remarks

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Applies to