Table of Contents

Class XPQueryBase

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Serves as the base class for the XPQuery<T> class. Intended for internal use.

public abstract class XPQueryBase : IPersistentValueExtractor
Inheritance
XPQueryBase
Implements
Derived
Inherited Members

Constructors

XPQueryBase(IDataLayer, Type)

protected XPQueryBase(IDataLayer layer, Type type)

Parameters

layer IDataLayer
type Type

XPQueryBase(XPDictionary, string)

protected XPQueryBase(XPDictionary dictionary, string data)

Parameters

dictionary XPDictionary
data string

XPQueryBase(XPDictionary, Type, bool)

protected XPQueryBase(XPDictionary dictionary, Type type, bool inTransaction)

Parameters

dictionary XPDictionary
type Type
inTransaction bool

XPQueryBase(Session, IDataLayer, XPDictionary)

protected XPQueryBase(Session session, IDataLayer dataLayer, XPDictionary dictionary)

Parameters

session Session
dataLayer IDataLayer
dictionary XPDictionary

XPQueryBase(Session, IDataLayer, XPDictionary, string)

protected XPQueryBase(Session session, IDataLayer dataLayer, XPDictionary dictionary, string data)

Parameters

session Session
dataLayer IDataLayer
dictionary XPDictionary
data string

XPQueryBase(Session, Type, bool)

protected XPQueryBase(Session session, Type type, bool inTransaction)

Parameters

session Session
type Type
inTransaction bool

XPQueryBase(XPQueryBase)

protected XPQueryBase(XPQueryBase baseQuery)

Parameters

baseQuery XPQueryBase

XPQueryBase(XPQueryBase, CustomCriteriaCollection)

protected XPQueryBase(XPQueryBase baseQuery, CustomCriteriaCollection customCriteriaCollection)

Parameters

baseQuery XPQueryBase
customCriteriaCollection CustomCriteriaCollection

XPQueryBase(XPQueryBase, bool?, bool?)

protected XPQueryBase(XPQueryBase baseQuery, bool? inTransaction = null, bool? withDeleted = null)

Parameters

baseQuery XPQueryBase
inTransaction bool?
withDeleted bool?

Fields

SuppressNonPersistentPropertiesCheck

public static bool SuppressNonPersistentPropertiesCheck

Field Value

bool

Properties

DataLayer

protected IDataLayer DataLayer { get; }

Property Value

IDataLayer

Dictionary

Gets or sets the XPDictionary class descendant’s instance which provides metadata on persistent objects in a data store.

public XPDictionary Dictionary { get; }

Property Value

XPDictionary

The XPDictionary class descendant’s instance.

ObjectClassInfo

protected XPClassInfo ObjectClassInfo { get; }

Property Value

XPClassInfo

Session

Gets or sets the session that is used to retrieve persistent objects in queries.

public Session Session { get; set; }

Property Value

Session

The Session class instance.

Methods

Assign(XPQueryBase)

protected void Assign(XPQueryBase prev)

Parameters

prev XPQueryBase

Call(MethodCallExpression, XPQueryBase)

protected void Call(MethodCallExpression call, XPQueryBase prev)

Parameters

call MethodCallExpression
prev XPQueryBase

CanIntersect()

protected bool CanIntersect()

Returns

bool

CloneCore()

protected abstract object CloneCore()

Returns

object

DivePropertyName(Stack<XPClassInfo>, ref string, ref XPClassInfo, bool)

protected void DivePropertyName(Stack<XPClassInfo> classInfoStack, ref string propertyName, ref XPClassInfo classInfo, bool throwOnEmptyStack = true)

Parameters

classInfoStack Stack<XPClassInfo>
propertyName string
classInfo XPClassInfo
throwOnEmptyStack bool

Enumerate(Type)

protected ICollection Enumerate(Type type)

Parameters

type Type

Returns

ICollection

Execute(Expression)

protected object Execute(Expression expression)

Parameters

expression Expression

Returns

object

ExecuteAsync(Expression, CancellationToken)

protected Task<object> ExecuteAsync(Expression expression, CancellationToken cancellationToken = default)

Parameters

expression Expression
cancellationToken CancellationToken

Returns

Task<object>

IsNull(object)

protected static bool IsNull(object val)

Parameters

val object

Returns

bool

Serialize()

Converts the current XPQueryBase class instance to string representation.

public string Serialize()

Returns

string

A string value that represents the query.