Class FromExpression
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
pivotPivotExpressionThe pivot definition.
FromExpression(QueryCommand)
Creates a source from a derived-table subquery.
public FromExpression(QueryCommand subQuery)
Parameters
subQueryQueryCommandThe subquery that produces the rows.
FromExpression(TableFunctionExpression)
Creates a source from a table-valued function.
public FromExpression(TableFunctionExpression tableFunction)
Parameters
tableFunctionTableFunctionExpressionThe 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
tablestringThe table name.
isAutoMappedboolWhether
tablewas derived from the entity type name.sourceIsInterfaceboolWhether the entity source type is an interface.
FromExpression(Type)
Creates a source for a mapped CLR entity type.
public FromExpression(Type srcType)
Parameters
srcTypeTypeThe 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
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
SourceIsInterface
Whether the entity source type is an interface, so the convention can drop its I prefix.
public readonly bool SourceIsInterface
Field Value
SourceType
The entity type, used when the source is a mapped CLR type rather than a table name.
public readonly Type? SourceType
Field Value
SubQuery
The derived-table subquery, or null when the source is not a subquery.
public readonly QueryCommand? SubQuery
Field Value
Table
The explicit table name, or null when the source is not a plain named table.
public readonly string? Table
Field Value
TableFunction
public readonly TableFunctionExpression? TableFunction