Returning EditCell in EditRows (#302)

Instead of returning DbCellValues inside an EditRow, we should be returning EditCells. This way we can preserve dirty state when scrolling.
This commit is contained in:
Benjamin Russell
2017-04-03 13:12:53 -07:00
committed by GitHub
parent ae178efe3e
commit 65456ae35b
10 changed files with 69 additions and 25 deletions

View File

@@ -283,7 +283,7 @@ namespace Microsoft.SqlTools.ServiceLayer.EditData
EditRow er = new EditRow
{
Id = rowId,
Cells = cachedRows.Rows[i],
Cells = cachedRows.Rows[i].Select(cell => new EditCell(cell, false)).ToArray(),
State = EditRow.EditRowState.Clean
};
editRows.Add(er);