C# Class Castle.ActiveRecord.Queries.ScalarQuery

Query that return a single result
Inheritance: Castle.ActiveRecord.Queries.HqlBasedQuery
显示文件 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
ScalarQuery ( Type targetType, QueryLanguage queryLanguage, string query ) : System

Initializes a new instance of the ScalarQuery class.

ScalarQuery ( Type targetType, string query ) : System

Initializes a new instance of the ScalarQuery class.

Protected Methods

Method Description
InternalEnumerate ( ISession session ) : IEnumerable

Creates a single-position object array containing the query's scalar result.

InternalExecute ( ISession session ) : object

Executes the query and returns its scalar result.

Method Details

InternalEnumerate() protected method

Creates a single-position object array containing the query's scalar result.
protected InternalEnumerate ( ISession session ) : IEnumerable
session ISession The NHibernate's
return IEnumerable

InternalExecute() protected method

Executes the query and returns its scalar result.
protected InternalExecute ( ISession session ) : object
session ISession The NHibernate's
return object

ScalarQuery() public method

Initializes a new instance of the ScalarQuery class.
public ScalarQuery ( Type targetType, QueryLanguage queryLanguage, string query ) : System
targetType System.Type Type of the target.
queryLanguage QueryLanguage The query language.
query string The query.
return System

ScalarQuery() public method

Initializes a new instance of the ScalarQuery class.
public ScalarQuery ( Type targetType, string query ) : System
targetType System.Type Type of the target.
query string The query.
return System