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)
Create an IsolatedQuery from raw components.
public IsolatedQuery(Expression expression, string sourceEntityName, string targetEntityName, FilterLevel keyLevel, RelationshipPath? path, bool allowDirtyReads = false)
Parameters
expressionExpressionsourceEntityNamestringtargetEntityNamestringkeyLevelFilterLevelpathRelationshipPathallowDirtyReadsbool
IsolatedQuery(IEntityQuery, RelationshipPath?)
Create an IsolatedQuery by decomposing an IEntityQuery.
public IsolatedQuery(IEntityQuery query, RelationshipPath? path)
Parameters
queryIEntityQuerypathRelationshipPath
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
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()