C# Класс NSoft.NFramework.Data.NHibernateEx.CriteriaTool

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetRootCriteria ( this criteria ) : CriteriaImpl

Get Root Criteria

GetRootType ( this criteria ) : Type

Get the entity type in criteria

GetRootType ( this detachedCriteria, ISession session ) : Type

Get the root entity type in criteria

GetSession ( this criteria ) : ISessionImplementor

criteria가 사용하는 ISessionImplementor을 반환합니다.

IsBetweenCriterion ( this propertyName, object lo, object hi ) : ICriterion

Between (상하한을 포함하는 구간의 값을 구한다. 상하한에 대한 구간 검증은 하지 않는다!!!)

IsInRangeCriterion ( this value, string loPropertyName, string hiPropertyName ) : ICriterion

지정한 값이 두 속성의 값 범위 안에 있을 때 ( Between 의 반대 개념 )

IsOverlapCriterion ( this period, string loPropertyName, string hiPropertyName ) : ICriterion

주어진 기간이 오버랩되는지를 파악하는 Criterion

Приватные методы

Метод Описание
ToMatchString ( this matchString, NHibernate.Criterion.MatchMode matchMode ) : string

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

GetRootCriteria() публичный статический Метод

Get Root Criteria
public static GetRootCriteria ( this criteria ) : CriteriaImpl
criteria this
Результат CriteriaImpl

GetRootType() публичный статический Метод

Get the entity type in criteria
criteria의 session이 null일 경우
public static GetRootType ( this criteria ) : Type
criteria this
Результат System.Type

GetRootType() публичный статический Метод

Get the root entity type in criteria
public static GetRootType ( this detachedCriteria, ISession session ) : Type
detachedCriteria this
session ISession
Результат System.Type

GetSession() публичный статический Метод

criteria가 사용하는 ISessionImplementor을 반환합니다.
public static GetSession ( this criteria ) : ISessionImplementor
criteria this
Результат ISessionImplementor

IsBetweenCriterion() публичный статический Метод

Between (상하한을 포함하는 구간의 값을 구한다. 상하한에 대한 구간 검증은 하지 않는다!!!)
public static IsBetweenCriterion ( this propertyName, object lo, object hi ) : ICriterion
propertyName this 속성명
lo object 하한
hi object 상한
Результат ICriterion

IsInRangeCriterion() публичный статический Метод

지정한 값이 두 속성의 값 범위 안에 있을 때 ( Between 의 반대 개념 )
public static IsInRangeCriterion ( this value, string loPropertyName, string hiPropertyName ) : ICriterion
value this
loPropertyName string
hiPropertyName string
Результат ICriterion

IsOverlapCriterion() публичный статический Метод

주어진 기간이 오버랩되는지를 파악하는 Criterion
public static IsOverlapCriterion ( this period, string loPropertyName, string hiPropertyName ) : ICriterion
period this
loPropertyName string
hiPropertyName string
Результат ICriterion