mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-31 01:25:42 -05:00
Applying Changes to SQL Database Projects and Using Projects in Comparison (#1296)
* passing initial testing * update local project from database * update local project * update project from database * update project from database * update project from database * update project from database * update project from database * update project from database * update project from database * update project from database * update project from database * update project from database * Bump .net version * PR feedback * Adding temporary compat shim * reverting some formatting changes; fixing strings * PR feedback Co-authored-by: Noureldine Yehia <t-nyehia@microsoft.com>
This commit is contained in:
@@ -12,12 +12,21 @@ using Microsoft.SqlTools.ServiceLayer.Utility;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// Types of schema compare endpoints
|
||||
/// </summary>
|
||||
public enum SchemaCompareEndpointType
|
||||
{
|
||||
Database,
|
||||
Dacpac
|
||||
Database = 0,
|
||||
Dacpac = 1,
|
||||
Project = 2
|
||||
// must be kept in-sync with SchemaCompareEndpointType in Azure Data Studio
|
||||
// located at \extensions\mssql\src\mssql.d.ts
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Info needed from endpoints for schema comparison
|
||||
/// </summary>
|
||||
public class SchemaCompareEndpointInfo
|
||||
{
|
||||
/// <summary>
|
||||
@@ -25,6 +34,21 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare.Contracts
|
||||
/// </summary>
|
||||
public SchemaCompareEndpointType EndpointType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the project file path
|
||||
/// </summary>
|
||||
public string ProjectFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scripts included in project
|
||||
/// </summary>
|
||||
public string[] TargetScripts { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the project data schema provider
|
||||
/// </summary>
|
||||
public string DataSchemaProvider { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets package filepath
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user