C# Class Castle.ActiveRecord.Queries.ActiveRecordMultiQuery

wrapper for an IMultiQuery that executes a collection of queries.
Inheritance: IActiveRecordQuery
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
ActiveRecordMultiQuery ( Type RootType ) : System

Initializes a new instance of the ActiveRecordMultiQuery class.

ActiveRecordMultiQuery ( Type RootType, ActiveRecordBaseQuery activeRecordQueries ) : System

Initializes a new instance of the ActiveRecordMultiQuery class.

Add ( ActiveRecordBaseQuery activeRecordQuery ) : void

Add an IActiveRecordQuery to our ActiveRecordMultiQuery

Enumerate ( ISession session ) : System.Collections.IEnumerable

(Not Implemented!) Enumerates over the result of the query. Note: Only use if you expect most of your values to already exist in the second level cache!

Execute ( ISession session ) : object

Executes the specified query and return the results

Method Details

ActiveRecordMultiQuery() public method

Initializes a new instance of the ActiveRecordMultiQuery class.
public ActiveRecordMultiQuery ( Type RootType ) : System
RootType System.Type the root type for all of the queries that will be included in the IMultiQuery
return System

ActiveRecordMultiQuery() public method

Initializes a new instance of the ActiveRecordMultiQuery class.
public ActiveRecordMultiQuery ( Type RootType, ActiveRecordBaseQuery activeRecordQueries ) : System
RootType System.Type the root type for all of the queries that will be included in the IMultiQuery
activeRecordQueries Castle.ActiveRecord.ActiveRecordBaseQuery an array of IActiveRecordQuery
return System

Add() public method

Add an IActiveRecordQuery to our ActiveRecordMultiQuery
public Add ( ActiveRecordBaseQuery activeRecordQuery ) : void
activeRecordQuery Castle.ActiveRecord.ActiveRecordBaseQuery IActiveRecordQuery to be added to the MultiQuery
return void

Enumerate() public method

(Not Implemented!) Enumerates over the result of the query. Note: Only use if you expect most of your values to already exist in the second level cache!
public Enumerate ( ISession session ) : System.Collections.IEnumerable
session ISession
return System.Collections.IEnumerable

Execute() public method

Executes the specified query and return the results
public Execute ( ISession session ) : object
session ISession The session to execute the query in.
return object