//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.EditData.Contracts
{
///
/// Parameters for a subset retrieval request
///
public class EditSubsetParams : SessionOperationParams
{
///
/// Beginning index of the rows to return from the selected resultset. This index will be
/// included in the results.
///
public long RowStartIndex { get; set; }
///
/// Number of rows to include in the result of this request. If the number of the rows
/// exceeds the number of rows available after the start index, all available rows after
/// the start index will be returned.
///
public int RowCount { get; set; }
}
///
/// Parameters for the result of a subset retrieval request
///
public class EditSubsetResult
{
///
/// The number of rows returned from result set, useful for determining if less rows were
/// returned than requested.
///
public int RowCount { get; set; }
///
/// The requested subset of rows, with information about whether or not the rows are dirty
///
public EditRow[] Subset { get; set; }
}
public class EditSubsetRequest
{
public static readonly
RequestType Type =
RequestType.Create("edit/subset");
}
}