DacFx import/export (#728)

Adding DacFx import/export/deploy/extract functionality
This commit is contained in:
kisantia
2018-11-27 16:10:46 -08:00
committed by GitHub
parent 7a47db8806
commit d5fd968b3c
17 changed files with 920 additions and 9 deletions

View File

@@ -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>