Table of Contents

Class FromExpression

Namespace
NextORM.Core
Assembly
nextorm.core.dll

Identifies a query source: a table name, an entity type, a subquery, a table-valued function, a PIVOT/UNPIVOT, or one of the in-memory-only source kinds.

public sealed class FromExpression
Inheritance
FromExpression
Inherited Members
Extension Methods

Constructors

FromExpression(PivotExpression)

Creates a source from a PIVOT/UNPIVOT.

public FromExpression(PivotExpression pivot)

Parameters

pivot PivotExpression

The pivot definition.

FromExpression(QueryCommand)

Creates a source from a derived-table subquery.

public FromExpression(QueryCommand subQuery)

Parameters

subQuery QueryCommand

The subquery that produces the rows.

FromExpression(TableFunctionExpression)

Creates a source from a table-valued function.

public FromExpression(TableFunctionExpression tableFunction)

Parameters

tableFunction TableFunctionExpression

The table function call.

FromExpression(string, bool, bool)

Creates a source for a named table.

public FromExpression(string table, bool isAutoMapped = false, bool sourceIsInterface = false)

Parameters

table string

The table name.

isAutoMapped bool

Whether table was derived from the entity type name.

sourceIsInterface bool

Whether the entity source type is an interface.

FromExpression(Type)

Creates a source for a mapped CLR entity type.

public FromExpression(Type srcType)

Parameters

srcType Type

The entity type.

Fields

IsAutoMapped

Whether Table was derived from the entity type name (and is therefore subject to the active INamingConvention) rather than declared explicitly.

public readonly bool IsAutoMapped

Field Value

bool

Pivot

Set when the source is a PIVOT/UNPIVOT over Inner. Mutually exclusive with Table, SubQuery, TableFunction and NextORM.Core.FromExpression.LinqSource.

public readonly PivotExpression? Pivot

Field Value

PivotExpression

SourceIsInterface

Whether the entity source type is an interface, so the convention can drop its I prefix.

public readonly bool SourceIsInterface

Field Value

bool

SourceType

The entity type, used when the source is a mapped CLR type rather than a table name.

public readonly Type? SourceType

Field Value

Type

SubQuery

The derived-table subquery, or null when the source is not a subquery.

public readonly QueryCommand? SubQuery

Field Value

QueryCommand

Table

The explicit table name, or null when the source is not a plain named table.

public readonly string? Table

Field Value

string

TableFunction

Set when the source is a table-valued function. Mutually exclusive with Table and SubQuery.

public readonly TableFunctionExpression? TableFunction

Field Value

TableFunctionExpression