Support TOP n When Initializing Edit Sessions (#290)

* Start of edit initialize filtering

* Implementation to utilize filtering

* Unit tests for the refactoring

* Unit tests for query construction
This commit is contained in:
Benjamin Russell
2017-03-22 17:32:41 -07:00
committed by GitHub
parent f8afee2e94
commit 991421c6f8
10 changed files with 283 additions and 80 deletions

View File

@@ -0,0 +1,18 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.ServiceLayer.EditData.Contracts
{
/// <summary>
/// Parameters for filtering a the rows in a table to make querying easier
/// </summary>
public class EditInitializeFiltering
{
/// <summary>
/// Limit the records queried from the database to this many. If null, all rows are returned
/// </summary>
public int? LimitResults { get; set; }
}
}

View File

@@ -12,6 +12,11 @@ namespace Microsoft.SqlTools.ServiceLayer.EditData.Contracts
/// </summary>
public class EditInitializeParams : SessionOperationParams
{
/// <summary>
/// Filtering parameters
/// </summary>
public EditInitializeFiltering Filters { get; set; }
/// <summary>
/// The object to use for generating an edit script
/// </summary>