Back to Tech landscape

NHibernate

Backend

ORM of choice for SaaS and platform relational templates

Official documentation (opens in a new tab)

Overview

NHibernate is the preferred ORM in ConnectSoft SaaS platform templates and several Factory relational stacks—chosen for mature mapping of rich domain models, interceptors, and predictable SQL generation on SQL Server and Azure SQL.

Generated solutions include repository boundaries, session lifecycle management, and FluentMigrator or scripted migrations executed in Azure Pipelines. We avoid mixing NHibernate and EF Core casually in the same bounded context—template docs make the default explicit per program.

For client modernization off legacy NHibernate estates, we preserve mapping investments where sensible while aligning hosting, telemetry, and security with current Azure patterns. Performance testing on hot paths is standard before production cutover.

Building a multi-tenant SaaS data layer on Azure SQL? NHibernate in our templates encodes years of platform decisions—extend mappings while keeping upgrade and migration paths governed.

Why we use it:

  • Default ORM for SaaS platform and selected Factory relational templates
  • Rich domain mapping with interceptors and explicit repository boundaries
  • FluentMigrator and pipeline-governed schema migrations
  • Tuned for SQL Server and Azure SQL production workloads
  • Documented boundaries versus EF Core adoption per template
  • Migration support for legacy NHibernate client systems

Ready to work with us?

Let's discuss how our team can help achieve your digital goals