IdleLandsRedux.DataAccess.Bootstrapper.CreateSession C# (CSharp) Méthode

CreateSession() public static méthode

public static CreateSession ( ) : ISession
Résultat 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();
        }