Language: C#
StructureMap and NHibernate setup
For<IUnitOfWork>()
.LifecycleIs(new UniquePerRequestLifecycle())
.Use(x => new UnitOfWork(x.GetInstance<ISessionFactory>(Keys.SessionFactoryName)));
Tags:
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

