예제 #1
0
        public void Connect(string databasePath)
        {
            //clear any open connection if already open
            Cleanup();

            if (DatabaseObject == null)
            {
                DatabaseObject = new DAS();
            }

            if (!FileExists(databasePath))
            {
                throw new Exception($"File does not exist{databasePath}");
            }

            DatabaseObject.Connect(databasePath, _userName, _password, GetProvider());
        }