O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Writing Queries

Nearly every application collects data, loads of data, and stores it in some database. In the end, users want to get some valuable information out of the data. That's why reports are always the most important part an application provides to the end user. To get those reports on-screen or on paper, we first query the data from the database. Consequently, querying the database can be considered the backbone of our solution.

In this chapter, we shall:

  • Learn how to use LINQ (Language Integrated Queries) to NHibernate to retrieve data from the database
  • Query the database using the criteria query API
  • Use the original object-oriented SQL dialect called Hibernate Query Language (HQL)
  • Discuss entities with properties that can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required