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
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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