mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
These changes needs to remove from main and have to merge with other changes. (#1552)
This commit is contained in:
committed by
GitHub
parent
1de6c6070a
commit
0b2eb44769
@@ -274,8 +274,6 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
|||||||
|
|
||||||
private Dictionary<string, string> _displayNameMapDict;
|
private Dictionary<string, string> _displayNameMapDict;
|
||||||
|
|
||||||
public Dictionary<string, int> IncludeObjectsTable;
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -408,9 +406,6 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
|||||||
// Setting Display names for all dacDeploy options
|
// Setting Display names for all dacDeploy options
|
||||||
SetDisplayNameForOption();
|
SetDisplayNameForOption();
|
||||||
|
|
||||||
// Preparing Include Object types options table
|
|
||||||
CreateIncludeObjectsTable();
|
|
||||||
|
|
||||||
// Adding these defaults to ensure behavior similarity with other tools. Dacfx and SSMS import/export wizards use these defaults.
|
// Adding these defaults to ensure behavior similarity with other tools. Dacfx and SSMS import/export wizards use these defaults.
|
||||||
// Tracking the full fix : https://github.com/microsoft/azuredatastudio/issues/5599
|
// Tracking the full fix : https://github.com/microsoft/azuredatastudio/issues/5599
|
||||||
options.AllowDropBlockingAssemblies = true;
|
options.AllowDropBlockingAssemblies = true;
|
||||||
@@ -441,22 +436,9 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
|||||||
// Setting Display names for all dacDeploy options
|
// Setting Display names for all dacDeploy options
|
||||||
SetDisplayNameForOption();
|
SetDisplayNameForOption();
|
||||||
|
|
||||||
// Preparing Include Object types options table
|
|
||||||
CreateIncludeObjectsTable();
|
|
||||||
|
|
||||||
SetOptions(options);
|
SetOptions(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Sets include objects enum values and number in to the dictionary
|
|
||||||
/// </summary>
|
|
||||||
public void CreateIncludeObjectsTable()
|
|
||||||
{
|
|
||||||
// Set include objects table data
|
|
||||||
var objectTypeEnum = typeof(ObjectType);
|
|
||||||
IncludeObjectsTable = Enum.GetNames(objectTypeEnum).ToDictionary(t => t, t => (int)System.Enum.Parse(objectTypeEnum, t));
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// initialize deployment options from the options in a publish profile.xml
|
/// initialize deployment options from the options in a publish profile.xml
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user