Skip to content

autofac/Autofac.Extras.NHibernate

Repository files navigation

Autofac.Extras.NHibernate

Autofac implementation of the NHibernate factories that allow for dependency injection into entities and NHibernate objects.

Build status

⚠️ MAINTENANCE MODE: This package is in maintenance-only mode. Bug fixes may be addressed and Autofac compatibility may be checked but no new features will be added.

Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.

Usage

The provider is based on the blog article here.

var builder = new ContainerBuilder();
var container = builder.Build();

Environment.BytecodeProvider = new AutofacBytecodeProvider(
    container,
    new ProxyFactoryFactory());

About

Autofac implementation of the NHibernate factories

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published