Share via


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

Definition

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

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public string Expression (System.Linq.Expressions.Expression node, System.Collections.Generic.ISet<string> collectedNamespaces);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member Expression : System.Linq.Expressions.Expression * System.Collections.Generic.ISet<string> -> string
Public Function Expression (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