C# Класс 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.
Наследование: Castle.ActiveRecord.Queries.HqlBasedQuery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
InternalExecute ( ISession session ) : object

Executes the query.

Описание методов

CountQuery() публичный Метод

Initializes a new instance of the CountQuery class.
public CountQuery ( Type targetType ) : System
targetType System.Type The target type.
Результат System

CountQuery() публичный Метод

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
Результат System

CountQuery() публичный Метод

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
Результат System

CountQuery() публичный Метод

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.
Результат System

InternalExecute() защищенный Метод

Executes the query.
protected InternalExecute ( ISession session ) : object
session ISession The NHibernate's
Результат object