Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Amaël BERTEAU
Software Craftsman & Maker

Main navigation

  • Home
  • News
  • Software Engineering
  • Maker
  • Entrepreneuriat
  • Misc
  • Personal Projects
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools

Improve NHibernate QueryOver with extension methods

Breadcrumb

  • Home
  • Software Engineering
  • Improve NHibernate QueryOver with extension methods

Software Engineering

  • Agile
  • Concepts / Practices
  • Architecture / Design
  • Implementation
  • Tools
    • FR
    • EN
By aberteau | 9:56 PM CEST, Fri July 21, 2017

In this tutorial, we will see how to centralize and produce more comprehensive code around NHibernate QueryOver by adding extensions methods.

Goals

At the end of this tutorial, we will have extension methods that centralize the definition of QueryOver manipulation.

In this way,

Advantages :

  • Ubiquitous or more comprehensive terms (with extension method name)
  • Where clause "Abstraction" / Composition / Reuse

Implementation

Domain Entities

Company

Contact

CompanyType

Domain Persistence

QueryOverContact

QueryOverCompany

Usages

NHibernate
QueryOver
.Net

Footer menu

  • Contact

Copyright © 2026 Amael BERTEAU - All rights reserved