C# Class IQ.Data.QueryLanguage

Defines the language rules for the query provider
Show file Open project: maravillas/linq-to-delicious Class Usage Examples

Public Methods

Method Description
CanBeColumn ( Expression expression ) : bool

Determines whether the given expression can be represented as a column in a select expressionss

Format ( Expression expression ) : string

Converts the query expression into text of this query language

IsScalar ( Type type ) : bool

Determines whether the CLR type corresponds to a scalar data type in the query language

Parameterize ( Expression expression ) : Expression

Determine which sub-expressions must be parameters

Quote ( string name ) : string
Translate ( Expression expression ) : Expression

Provides language specific query translation. Use this to apply language specific rewrites or to make assertions/validations about the query.

Method Details

CanBeColumn() public method

Determines whether the given expression can be represented as a column in a select expressionss
public CanBeColumn ( Expression expression ) : bool
expression System.Linq.Expressions.Expression
return bool

Format() public method

Converts the query expression into text of this query language
public Format ( Expression expression ) : string
expression System.Linq.Expressions.Expression
return string

IsScalar() public method

Determines whether the CLR type corresponds to a scalar data type in the query language
public IsScalar ( Type type ) : bool
type System.Type
return bool

Parameterize() public method

Determine which sub-expressions must be parameters
public Parameterize ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

Quote() public method

public Quote ( string name ) : string
name string
return string

Translate() public method

Provides language specific query translation. Use this to apply language specific rewrites or to make assertions/validations about the query.
public Translate ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression