Esempio n. 1
0
        protected void initializeDatabase()
        {
            String script;
            if (!appProperties.TryGetValue(DB_INIT_SQL, out script))
                appLog.log("Somehow script is NULL");

            appLog.info("running init sql (length: {0}): {1}", script.Length, script);
            using (SqlSession session = new SqlSession(SqlSession.Mode.AUTO_COMMIT)) {
                session.execute(script);
            }
        }