예제 #1
0
        public static SqlConnection GetSQLiteConnection()
        {
            if(connectionManager == null)
                connectionManager = new ConnectionManager();

            if(connectionManager.GetOpenedSQLConnection() == null)
                connectionManager.OpenSQLConnection();

            return connectionManager.GetOpenedSQLConnection();
        }
예제 #2
0
        public static IRepository GetRepository()
        {
            if(connectionManager == null)
                connectionManager = new ConnectionManager();

            if(connectionManager.GetCurrentRepository() == null)
                connectionManager.CreateRepository();

            return connectionManager.GetCurrentRepository();
        }