C# Class Castle.ActiveRecord.Queries.CountQuery

Query the database for a count (using COUNT(*) ) of all the entites of the specified type. Optionally using a where clause; Note: If Criteria are used, this query can not be included in a MultiQuery.
Inheritance: Castle.ActiveRecord.Queries.HqlBasedQuery
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
CountQuery ( Type targetType ) : System

Initializes a new instance of the CountQuery class.

CountQuery ( Type targetType, DetachedCriteria detachedCriteria ) : System

Initializes a new instance of the CountQuery class.

CountQuery ( Type targetType, ICriterion criterias ) : System

Initializes a new instance of the CountQuery class.

CountQuery ( Type targetType, string filter ) : System

Initializes a new instance of the CountQuery class.

Méthodes protégées

Méthode Description
InternalExecute ( ISession session ) : object

Executes the query.

Method Details

CountQuery() public méthode

Initializes a new instance of the CountQuery class.
public CountQuery ( Type targetType ) : System
targetType System.Type The target type.
Résultat System

CountQuery() public méthode

Initializes a new instance of the CountQuery class.
public CountQuery ( Type targetType, DetachedCriteria detachedCriteria ) : System
targetType System.Type The target type.
detachedCriteria DetachedCriteria Criteria applied to the query
Résultat System

CountQuery() public méthode

Initializes a new instance of the CountQuery class.
public CountQuery ( Type targetType, ICriterion criterias ) : System
targetType System.Type The target type.
criterias ICriterion Criteria applied to the query
Résultat System

CountQuery() public méthode

Initializes a new instance of the CountQuery class.
public CountQuery ( Type targetType, string filter ) : System
targetType System.Type The target type.
filter string The filter.
Résultat System

InternalExecute() protected méthode

Executes the query.
protected InternalExecute ( ISession session ) : object
session ISession The NHibernate's
Résultat object