SaaS CMS has officially launched! Learn more now.

Class Query

Base class for query classes

Inheritance
System.Object
Query
Namespace: EPiServer.Data.Dynamic.Linq
Assembly: EPiServer.Data.dll
Version: 7.19.2
Syntax
public abstract class Query : ExpressionProcessorBase

Constructors

Query()

Declaration
protected Query()

Properties

NewTypeConstructor

A System.Reflection.ConstructorInfo for the new type that will be returned from the query or null if a new type will not be returned

Declaration
protected virtual ConstructorInfo NewTypeConstructor { get; set; }
Property Value
Type Description
System.Reflection.ConstructorInfo

ReturnsNewType

A System.Boolean indicating if the current query returns a new type

Declaration
protected virtual bool ReturnsNewType { get; }
Property Value
Type Description
System.Boolean

Methods

AddParameter(Object)

Declaration
protected string AddParameter(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.String

AddParameter(String, Object)

Declaration
protected void AddParameter(string name, object value)
Parameters
Type Name Description
System.String name
System.Object value

Clone()

Clone the current object

Declaration
protected abstract Query Clone()
Returns
Type Description
Query

A new Query with the same values as the current object

Execute()

Declaration
protected abstract object Execute()
Returns
Type Description
System.Object

GenerateSqlStatement()

Generate a SQL statement for the query

Declaration
protected abstract LinqQuery GenerateSqlStatement()
Returns
Type Description
LinqQuery

A System.String containing the SQL for the query

Transform<TTransform>()

Declaration
protected virtual Query<TTransform> Transform<TTransform>()
Returns
Type Description
Query<TTransform>
Type Parameters
Name Description
TTransform

Transform<TTransform>(Expression)

Declaration
protected abstract Query<TTransform> Transform<TTransform>(Expression expression)
Parameters
Type Name Description
System.Linq.Expressions.Expression expression
Returns
Type Description
Query<TTransform>
Type Parameters
Name Description
TTransform

Extension Methods