Nhibernate Query by criteria criteria

Source: Internet
Author: User

HQL operator

QBC operator

Meaning

=

Restrictions.eq ()

equals equal

<>

Restrictions.ne ()

Not equal to not equal

>

RESTRICTIONS.GT ()

Greater than greater than

>=

Restrictions.ge ()

Greater than or equal to greater than or equal

<

Restrictions.lt ()

Less than

<=

Restrictions.le ()

Less than or equal to than or equal

Is null

Restrictions.isnull ()

equals null value

is NOT NULL

Restrictions.isnotnull ()

Non-null value

Like

Restrictions.like ()

String pattern Matching

and

Restrictions.and ()

Logic and

and

Restrictions.conjunction ()

Logic and

Or

Restrictions.or ()

Logical OR

Or

Restrictions.disjunction ()

Logical OR

Not

Restrictions.not ()

Logical Non-

In ( list )

Restrictions.in ()

equals one of the values in the list

Not in ( list )

Restrictions.not (restrictions.in ())

is not equal to any one of the values in the list

Between X and Y

Restrictions.between ()

Any value in the closed interval xy

Not between X and Y

Restrictions.not (restrictions. Between ())

Less than value x or greater than value Y

Nhibernate Query by criteria criteria

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.