Table of Contents

Class TableFunctionExpression

Namespace
NextORM.Core
Assembly
nextorm.core.dll

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

name string
schema string
call MethodCallExpression

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

name string
schema string
withClause string
call MethodCallExpression

Properties

Arguments

The TVF argument expressions, in declaration order.

public IReadOnlyList<Expression> Arguments { get; }

Property Value

IReadOnlyList<Expression>

Call

The SQL method call the FROM source was created from; its arguments are the TVF arguments.

public MethodCallExpression Call { get; }

Property Value

MethodCallExpression

CallClause

Optional verbatim SQL appended inside the call parentheses after the arguments (the runtime descriptor's CallClause).

public string? CallClause { get; }

Property Value

string

Name

SQL function name of the runtime descriptor (Name).

public string Name { get; }

Property Value

string

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

TableFunctionSchema

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

Type

Schema

Optional schema/owner prefix, rendered as schema.name.

public string? Schema { get; }

Property Value

string

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

IReadOnlyList<int>

WithClause

Optional trailing WITH (...) clause body (the runtime descriptor's WithClause), appended verbatim after the call.

public string? WithClause { get; }

Property Value

string