Autofac implementation of the NHibernate factories that allow for dependency injection into entities and NHibernate objects.
⚠️ 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.
The provider is based on the blog article here.
var builder = new ContainerBuilder();
var container = builder.Build();
Environment.BytecodeProvider = new AutofacBytecodeProvider(
container,
new ProxyFactoryFactory());