C# Class IQ.Data.QueryPolicy

Defines query execution & materialization policies.
Datei anzeigen Open project: maravillas/linq-to-delicious Class Usage Examples

Public Methods

Method Description
BuildExecutionPlan ( Expression projection, Expression provider ) : Expression

Converts a query into an execution plan. The plan is an function that executes the query and builds the resulting objects.

IsDeferLoaded ( MemberInfo member ) : bool

Determines if a relationship property is included, but the query for the related data is deferred until the property is first accessed.

IsIncluded ( MemberInfo member ) : bool

Determines if a relationship property is to be included in the results of the query

QueryPolicy ( QueryMapping mapping ) : System
Translate ( Expression expression ) : Expression

Provides policy specific query translations. This is where choices about inclusion of related objects and how heirarchies are materialized affect the definition of the queries.

Method Details

BuildExecutionPlan() public method

Converts a query into an execution plan. The plan is an function that executes the query and builds the resulting objects.
public BuildExecutionPlan ( Expression projection, Expression provider ) : Expression
projection System.Linq.Expressions.Expression
provider System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

IsDeferLoaded() public method

Determines if a relationship property is included, but the query for the related data is deferred until the property is first accessed.
public IsDeferLoaded ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

IsIncluded() public method

Determines if a relationship property is to be included in the results of the query
public IsIncluded ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

QueryPolicy() public method

public QueryPolicy ( QueryMapping mapping ) : System
mapping QueryMapping
return System

Translate() public method

Provides policy specific query translations. This is where choices about inclusion of related objects and how heirarchies are materialized affect the definition of the queries.
public Translate ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression