Skip to main content
Amaël BERTEAU

Main navigation

  • Home
  • News
  • Software Engineering
  • Entrepreneuriat
  • Maker
  • Misc
  • Personal Projects
  • About me
    • Bio
    • Curriculum Vitae
    • Skills
    • Likes
    • My Values
    • Quotes
    • Favorite Books
    • Favorite Tools
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Software Engineering

Improve NHibernate QueryOver with extension methods

By aberteau , 21 July, 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

Tags

  • NHibernate
  • QueryOver
  • .Net

Comments

RSS feed
Powered by Drupal