c# Programming Glossary: isessionfactory
Using Multiple databases in Fluent Nhibernate, System.TypeInitializationException was unhandled http://stackoverflow.com/questions/11225101/using-multiple-databases-in-fluent-nhibernate-system-typeinitializationexceptio static Configuration config private static readonly ISessionFactory _globalSessionFactory new Configuration .Configure .BuildSessionFactory.. .BuildSessionFactory protected static IDictionary string ISessionFactory _allFactories public NHibernateRepository IDictionary string.. for deatils below _allFactories new Dictionary string ISessionFactory dataBases.Count foreach var dataBase in dataBases config Fluently.Configure..
What ORM for .net should I use? http://stackoverflow.com/questions/1691575/what-orm-for-net-should-i-use this part of a default abstract setup class I use public ISessionFactory CreateSessionFactory return Fluently.Configure .Database MsSqlConfiguration.MsSql2008..
Ensure NHibernate SessionFactory is only created once http://stackoverflow.com/questions/2362195/ensure-nhibernate-sessionfactory-is-only-created-once class which holds a static Nhibernate ISessionFactory. This is used to make sure we only have one session factory.. INhibernateSessionFactory private static ISessionFactory _sessionFactory public ISession OpenSession if _sessionFactory..
NHibernate, and odd “Session is Closed!” errors http://stackoverflow.com/questions/2572015/nhibernate-and-odd-session-is-closed-errors public class SessionFactoryProvider IDisposable ISessionFactory sessionFactory public ISessionFactory GetSessionFactory if.. IDisposable ISessionFactory sessionFactory public ISessionFactory GetSessionFactory if sessionFactory null sessionFactory Fluently.Configure.. SessionProvider public class SessionProvider IDisposable ISessionFactory sessionFactory ISession session public SessionProvider SessionFactoryProvider..
Getting started with NHibernate 3.2 Loquacious API http://stackoverflow.com/questions/6348670/getting-started-with-nhibernate-3-2-loquacious-api API. I've seen blog posts on how to configure the ISessionFactory but I'm getting lost after this. I know that the 3.2 API is..
What is the best NHibernate session management approach for using in a multithread windows service application? http://stackoverflow.com/questions/6353692/what-is-the-best-nhibernate-session-management-approach-for-using-in-a-multithre I use this public class SessionFactory protected static ISessionFactory sessionFactory private static ILog log LogManager.GetLogger..
|