whatisgithub

What is autofac.extras.nhibernate?

autofac/autofac.extras.nhibernate — explained in plain English

Analysis updated 2026-07-15 · repo last pushed 2026-05-20

6C#Audience · developerComplexity · 2/5MaintainedSetup · moderate

In one sentence

A bridge library for .NET that lets NHibernate's internal database objects use Autofac's dependency injection, so behind-the-scenes components can access app-wide services like loggers. Archived since 2015 with no updates.

Mindmap

mindmap
  root((repo))
    What it does
      Bridges Autofac and NHibernate
      Enables dependency injection in NHibernate
      Custom provider swaps object creation
    Tech stack
      CSharp and dotNET
      Autofac IoC container
      NHibernate ORM
    Use cases
      Wire NHibernate objects to app services
      Use Autofac with database tools
      Avoid manual workarounds
    Audience
      dotNET developers
      Legacy code maintainers
    Project status
      Archived since 2015
      No updates or support
      Legacy package
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Connect NHibernate internal objects to application services like loggers when using Autofac for dependency injection.

USE CASE 2

Build a .NET app using NHibernate for database access while keeping all components organized through Autofac.

USE CASE 3

Allow NHibernate event listeners or data objects to access services like email senders without awkward workarounds.

What is it built with?

C#.NETAutofacNHibernate

How does it compare?

autofac/autofac.extras.nhibernatefroggacuda/tl2-lobbyd2phap/happlabox
Stars667
LanguageC#C#C#
Last pushed2026-05-202023-03-14
MaintenanceMaintainedDormant
Setup difficultymoderatemoderateeasy
Complexity2/53/52/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Project is archived and retired since 2015, so usage relies on an external blog article linked in the README rather than maintained documentation.

The license is not mentioned in the explanation, so it is unclear what permissions apply.

So what is it?

Autofac.Extras.NHibernate is a bridge library that connects two .NET tools: Autofac, which handles dependency injection (a way of automatically supplying software components with the resources they need), and NHibernate, a system for working with databases. Normally, NHibernate creates its own internal objects behind the scenes, and those objects can't easily tap into the rest of your application's resources. This package fixes that gap. When a program runs, it often needs to connect different pieces together at runtime. Autofac manages this by maintaining a container of ready-to-use components. NHibernate, for its part, works with database records by turning them into code objects. The library works by swapping in a custom provider that tells NHibernate to ask Autofac's container whenever it needs to build one of its behind-the-scenes objects. This means those internal pieces can be configured and connected just like the rest of your application. A developer would use this when building a .NET application that relies on NHibernate for database access but also uses Autofac to keep code organized and maintainable. For example, if a developer wants NHibernate's internal event listeners or data objects to access application services like a logger or an email sender, this integration makes that possible without awkward workarounds. The project is archived, meaning it is no longer receiving updates or support. It was put into a limited maintenance mode in 2015 and officially retired with no further development. Anyone considering it should be aware that it is a legacy package, and the README points to an external blog article for usage details.

Copy-paste prompts

Prompt 1
Show me how to configure Autofac.Extras.NHibernate so that NHibernate's internal objects get resolved from the Autofac container.
Prompt 2
Write a .NET setup where NHibernate uses Autofac for dependency injection, including registering a logger service that NHibernate internal objects can access.
Prompt 3
Create an example of an NHibernate event listener that pulls in an application service like an email sender through Autofac dependency injection.
Prompt 4
Migrate a legacy .NET project using Autofac.Extras.NHibernate to a maintained alternative that integrates Autofac and NHibernate.

Frequently asked questions

What is autofac.extras.nhibernate?

A bridge library for .NET that lets NHibernate's internal database objects use Autofac's dependency injection, so behind-the-scenes components can access app-wide services like loggers. Archived since 2015 with no updates.

What language is autofac.extras.nhibernate written in?

Mainly C#. The stack also includes C#, .NET, Autofac.

Is autofac.extras.nhibernate actively maintained?

Maintained — commit in last 6 months (last push 2026-05-20).

What license does autofac.extras.nhibernate use?

The license is not mentioned in the explanation, so it is unclear what permissions apply.

How hard is autofac.extras.nhibernate to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is autofac.extras.nhibernate for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.