* init
* More fixes
* moving filters from contracts to core OE classes
* Fixing some tests
* More fixes and added doc comments
* Fixing tests
* Quick refactoring
* more cleanups
* cleanup
* Adding stateless OE
* Adding null checks
* Making group by schema independent of settings
* Fixing tests
* Removing node info from core oe code
* Fixing tests and moving OE code to its own project
* moving oe to own project
* Removing changes to Kusto
* Removing azure access token from service layer
* Fixing project description and title
* Fixing file name typo
* Removing unused strings from service layer
* Fixing localized strings in tests
Adding comments to stateless OE
* Fixing stuff
* Update src/Microsoft.SqlTools.SqlCore/Microsoft.SqlTools.SqlCore.csproj
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Fixing project nesting
* Fixing more stuff and removing OE class
* Cleanup
* Code cleanup
* fixing oe service provider
* Fixing test name
* Remove using
* Update src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoQueryContext.cs
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Fixing syntax error
* Adding project to locproject
* Fixing stuff
* Fixing errors
* sorting usings
---------
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Adding startswith and like filter
* Adding ends with
* Adding tests
* Remove null and not null
* Fixing string
* Update test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeFilterTests.cs
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Update test/Microsoft.SqlTools.ServiceLayer.UnitTests/ObjectExplorer/NodeFilterTests.cs
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Adding back contains, starts with and ends with
* Properly escaping chars for like based filters
* Adding some comments regarding escape characters
* Using generated regex
* removing additional class
* Adding extra auth type that was causing the tests to error out
* Fixing regex
* Adding integration tests
* Fixing unit tests
* Making fluent assertions
---------
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Added all non null properties to URI generator
* Added all options to URI for session
* added documentation comments
* added generated nodeTypes file
* added updated uri to connection store
* Added debug message for integrated test failure
* Revert "Added debug message for integrated test failure"
This reverts commit 026c53d1ed3fb16b0f37b7b6e0775402a2ef9281.
* added advanced options to table designer table
* removed connectionName from uri generation
* Revert "removed connectionName from uri generation"
This reverts commit 88eedbbc593a0279872edc6d4cbd1b7ca3d72ad0.
* added connectionname to connection details
* added connection name to near front of key
* Making node types automated
* Adding schema based OE
* added folder types in NodeTypes
* Fixing stuff
* Moving schema to parent and cleaning up some code
* Replacing strings with nameof
* Sorting nodetypes generated by tt
* Adding option to put folders after nodes
* Fixing folder and children order
* Fixing tests
* Formatting file
* Formatting tt files
* Fixing tt
* fixing types
* Update src/Microsoft.SqlTools.ServiceLayer/SqlContext/ObjectExplorerSettings.cs
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Fixing stuff
* Updating schema definitions and adding more logs
* Fixing copyright
* Adding Integration and Unit Tests
* Fixing test
---------
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
support for a more robust filtering system in the Object Explorer xml, allowing for or-ing filter properties together for use in URN querying for objects
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
* Remove xunit dependency from testdriver
* swap expected/actual as needed
* Convert Test.Common to nunit
* port hosting unit tests to nunit
* port batchparser integration tests to nunit
* port testdriver.tests to nunit
* fix target to copy dependency
* port servicelayer unittests to nunit
* more unit test fixes
* port integration tests to nunit
* fix test method type
* try using latest windows build for PRs
* reduce test memory use
* Revert "Update SMO (#875)"
This reverts commit 96593d66e3.
* Revert "Switch Tools Service to new SMO and Microsoft.Data.SqlClient driver (#865)"
This reverts commit 9d140b53f3.
* Bump SMO to 160.1910315.0-preview
* Adding Support for SqlOnDemand
* Updating unit test per comment
* Resolving comments. Enabling external table for sqlondemand
* Resolving comments. Enabling External tables for sqlondemand
* Enabling external tables for sqlondemand
* switch to ambient props and targets files
* build against Microsoft.Data.SqlClient
* build tests
* fix test bug
* temporarily add SMO nuget to the repo
* update to released Microsoft.Data package
ObjectExplorerTests were adding 1 minute to total test time due to
unnecessarily trying and failing to connect to a non-existent server.
Mocking out this call saves 1minute, reducing test time in half
* Ensure connection open for OE queries and fix connection disposal
- Dispose connection in Metadata service, to ensure we cleanly dispose and don't rely on garbage colleciton
- Fixed issue where if the connection was closed, expanding databases in the Server would fail. This is because SMO doesn't always reopen the connection, certainly not for Server level queries. The solution is to always check if open and reopen.
- Added unit tests for this, which required mocking the relevant IsOpen / OpenConnection methods. Refactored SMO wrapper calls into a dedicated class file to handle this
* Fix the OE service where retuns database as the root node if the connection contains database name
* Fix OE tests
* addressed the comments
* addresses comment
* fix OE test and add more tests
* fix VerifyAdventureWorksDatabaseObjects test