mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
DacFx import/export (#728)
Adding DacFx import/export/deploy/extract functionality
This commit is contained in:
@@ -110,6 +110,27 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Common
|
||||
return CreateNew(serverType, false, null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a test Database that was created in a test
|
||||
/// </summary>
|
||||
public static SqlTestDb CreateFromExisting(
|
||||
string dbName,
|
||||
TestServerType serverType = TestServerType.OnPrem,
|
||||
bool doNotCleanupDb = false)
|
||||
{
|
||||
SqlTestDb testDb = new SqlTestDb();
|
||||
|
||||
if (string.IsNullOrEmpty(dbName))
|
||||
{
|
||||
throw new ArgumentOutOfRangeException("dbName");
|
||||
}
|
||||
|
||||
testDb.DatabaseName = dbName;
|
||||
testDb.ServerType = serverType;
|
||||
|
||||
return testDb;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a mangled name that unique based on Prefix + Machine + Process
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user