Class TableFunctionExpression
A table-valued function call used as a FROM source. The SQL name/schema and the other metadata are
snapshotted from the TvfEntityBuilder<T> descriptor the factory returned; the arguments
are kept as expressions and rendered/parameterised by SqlBuilder.
public sealed class TableFunctionExpression
- Inheritance
-
TableFunctionExpression
- Inherited Members
- Extension Methods
Constructors
TableFunctionExpression(string, string?, MethodCallExpression)
Creates a table-function source without a trailing WITH clause.
public TableFunctionExpression(string name, string? schema, MethodCallExpression call)
Parameters
namestringschemastringcallMethodCallExpression
TableFunctionExpression(string, string?, string?, MethodCallExpression)
Creates a table-function source, optionally with a trailing WITH (...) clause body.
public TableFunctionExpression(string name, string? schema, string? withClause, MethodCallExpression call)
Parameters
namestringschemastringwithClausestringcallMethodCallExpression
Properties
Arguments
The TVF argument expressions, in declaration order.
public IReadOnlyList<Expression> Arguments { get; }
Property Value
Call
The SQL method call the FROM source was created from; its arguments are the TVF arguments.
public MethodCallExpression Call { get; }
Property Value
CallClause
Optional verbatim SQL appended inside the call parentheses after the arguments (the runtime descriptor's CallClause).
public string? CallClause { get; }
Property Value
Name
SQL function name of the runtime descriptor (Name).
public string Name { get; }
Property Value
ResultSchema
Where the caller-declared result schema is rendered, or None when the function supplies its own result shape. See ResultSchema.
public TableFunctionSchema ResultSchema { get; }
Property Value
ResultType
The mapped row type supplied by the runtime descriptor whose metadata renders the result schema when ResultSchema is not None.
public Type? ResultType { get; }
Property Value
Schema
Optional schema/owner prefix, rendered as schema.name.
public string? Schema { get; }
Property Value
VerbatimArguments
Indices of the arguments emitted verbatim as SQL identifiers (the runtime descriptor's
VerbatimArguments); null when every argument is a value.
public IReadOnlyList<int>? VerbatimArguments { get; }
Property Value
WithClause
Optional trailing WITH (...) clause body (the runtime descriptor's
WithClause), appended verbatim after the call.
public string? WithClause { get; }