NHibernate Tour (3): Explore the Query NHibernate Query Language (HQL)

Source: Internet
Author: User

The contents of this section

The Query method in NHibernate

NHibernate Query Language (HQL)

1.from clause

2.select clause

3.where clause

4.order BY clause

5.group BY clause

Example analysis

Conclusion

In the previous section, we initially set up a nhibernate program to map the Customer table and read the data function, which is a preliminary discussion of the Query method in NHibernate in the next section. Before I do this, I'll recall what was done in the previous section, one of the many people who replied very classic, simple and clear! Or look at the picture. Summarize the last three important things: Create a database table-----write a Persistence class-----Write a mapping file, and then configure it to use.

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.