IdleLandsRedux.DataAccess.Bootstrapper.CreateSession C# (CSharp) Method

CreateSession() public static method

public static CreateSession ( ) : ISession
return ISession
        public static ISession CreateSession()
        {
            if (_sessionFactory == null)
            {
                if (log != null)
                {
                    log.Error("Initialize bootstrapper first!");
                }
                throw new InvalidOperationException("Initialize bootstrapper first!");
            }

            return _sessionFactory.OpenSession();
        }