The Query type exposes the following members.

Constructors

  NameDescription
QueryOverloaded.

Methods

  NameDescription
BuildSql
Builds the SQL that will be generated by this query. Requires that the EntityType property has been explicitly set.

Fields

  NameDescription
AllAggregates
When passed as the Query.AggregateName, includes all named aggregates (forces all optional eager loads).

Properties

  NameDescription
AggregateName
Gets or sets the name of the aggregate used to control the scope of the returned object graph.
ComposedQueries
Gets a list of queries to be composed using the ComposeMethod.
ComposeMethod
The SQL operator used to compose the ComposedQueries, such as UNION, UNION ALL or INTERSECT.
Distinct
Applies the SQL DISTINCT operator to the generated SQL query. Only currently applies to projections.
EntityType
Gets or sets the Type of the Entity this query is targeting.
Group
Gets or sets a Group that determines how the query results are grouped.
Hints
Gets the hints or other execution guidance to be passed to the database for use in query planning.
Identifier
Gets or sets an identifier used when querying for a single object by id.
IdentifiersOnly
When true, the query will select object identifiers instead of complete entities. This parameter is only applicable when using Find(Query, IList).
IncludeDeleted
When using soft delete, setting this property to true causes objects marked as deleted to also be returned.
InnerQuery
Gets or sets the inner query.
Join
Gets or sets a Join that determines how the query retrieves data from across multiple tables.
Mappings
Specifies a mapping of entity types to aliases for use in the Query.
Order
Gets or sets Order that determines the order in which results are returned.
Page
Gets or sets a Page used to return a subset of the total available results.
Projection
A collection of field names representing a projection. A projection query returns only a subset of fields of an entity.
ProviderOptions
Gets or sets database-specific query options. The type of query options must correspond to the database provider against which you execute the query.
QueryExpression
Gets or sets a QueryExpression used to determine the precise results returned.
SearchQuery
Gets or sets the search query submitted to a ISearchEngine when using full text searching.
Subexpressions
A collection of named subexpressions that can be referenced as attributes in the query.
ViewName
Gets or sets the view to be used as the query source. If null or empty, the default name (obtained from the class name or Table attribute) is used.

See Also