Syntax
| C# |
|---|
public class SimpleQuery<T> |
Type Parameters
- T
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| SimpleQuery<(Of <T>)>SimpleQuery<(Of <T>)>New | Overloaded. |
Public Methods
| Name | Description | |
|---|---|---|
| AddSqlReturnDefinition |
Adds a SQL query return definition.
See CreateSQLQuery(String, array<String>[](), array<Type>[]()) for more information.
(Inherited from HqlBasedQuery.) | |
| Clone |
Just a default clone implementation...
(Inherited from ActiveRecordBaseQuery.) | |
| Enumerate |
Enumerates the query results. Better suited for queries
which might return large results.
IQueryEnumerable()() | |
| Equals | (Inherited from Object.) | |
| Execute |
Executes the query and gets the results.
| |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| SetParameter | Overloaded. | |
| SetParameterList | Overloaded. | |
| SetQueryRange | Overloaded. | |
| ToString | (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| AddModifier |
Adds a query modifier, to be applied with ApplyModifiers(IQuery).
(Inherited from ActiveRecordBaseQuery.) | |
| ApplyModifiers |
Applies the modifiers added with AddModifier(IQueryModifier).
(Inherited from ActiveRecordBaseQuery.) | |
| CreateQuery |
Creates the IQuery instance.
(Inherited from HqlBasedQuery.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetResultsArray | Overloaded. | |
| InternalEnumerate |
Simply creates the query and then call its Enumerable()() method.
Note: Only use when you expect most of the results to be in the second level cache
(Overrides ActiveRecordBaseQuery..::InternalEnumerate(ISession).) | |
| InternalExecute |
Executes the query and converts the results into a strongly-typed
array of T.
(Overrides ActiveRecordBaseQuery..::InternalExecute(ISession).) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Protected Fields
| Name | Description | |
|---|---|---|
| queryModifiers |
list of modifiers for the query
(Inherited from ActiveRecordBaseQuery.) |
Public Properties
| Name | Description | |
|---|---|---|
| Log |
Use the specified logger to output diagnostic messages.
(Inherited from ActiveRecordBaseQuery.) | |
| Query |
The query text.
(Inherited from HqlBasedQuery.) | |
| RootType |
Gets the target type of this query
(Inherited from ActiveRecordBaseQuery.) |