Class IsolatedQuery
Dynamic representation of a query without Include() that can be independently cached and executed.
public sealed class IsolatedQuery
- Inheritance
-
IsolatedQuery
- Inherited Members
Constructors
IsolatedQuery(Expression, string, string, FilterLevel, RelationshipPath?, bool, IsolatedQuery?)
Create an IsolatedQuery from raw components.
public IsolatedQuery(Expression expression, string sourceEntityName, string targetEntityName, FilterLevel keyLevel, RelationshipPath? path, bool allowDirtyReads = false, IsolatedQuery? source = null)
Parameters
expressionExpressionsourceEntityNamestringtargetEntityNamestringkeyLevelFilterLevelpathRelationshipPathallowDirtyReadsboolsourceIsolatedQuery
IsolatedQuery(IEntityQuery, RelationshipPath?, IsolatedQuery?)
Create an IsolatedQuery by decomposing an IEntityQuery.
public IsolatedQuery(IEntityQuery query, RelationshipPath? path, IsolatedQuery? source = null)
Parameters
queryIEntityQuerypathRelationshipPathsourceIsolatedQuery
Properties
AllowDirtyReads
Whether read operations generated from this query are eligible to run under READ UNCOMMITTED.
public bool AllowDirtyReads { get; }
Property Value
Expression
Expression tree extracted from the query.
public Expression Expression { get; }
Property Value
IsWholeTable
Whether this query loads the complete contents of a table. Only a bare table query carries All: every query operator refines the level.
public bool IsWholeTable { get; }
Property Value
KeyLevel
Hierarchical cache level of the query.
public FilterLevel KeyLevel { get; }
Property Value
Path
Path used to construct Include() queries. Null for top-level queries.
public RelationshipPath? Path { get; }
Property Value
Relationship
The relationship this include follows from the rows of its Source. Null for top-level queries.
public RelationshipInfo? Relationship { get; }
Property Value
RootExpression
The query Include() was called on, whose rows this include's path starts from. Null for top-level queries.
public Expression? RootExpression { get; }
Property Value
Source
The query whose rows this include's rows are related to: the query Include() was called on, or the include of the preceding path segment. Null for top-level queries.
public IsolatedQuery? Source { get; }
Property Value
SourceEntityName
Source entity type name (from query provider).
public string SourceEntityName { get; }
Property Value
SourceExpression
The query this include was expanded from, whose rows are the parents its own rows belong to. Null for top-level queries.
public Expression? SourceExpression { get; }
Property Value
TargetEntityName
Target entity type name (from query element type).
public string TargetEntityName { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WithDirtyReads()
Returns an equivalent query whose read operations are eligible to run under READ UNCOMMITTED.
public IsolatedQuery WithDirtyReads()