Add a context menu command "Copy as new List<string>" to the grid context menu.
Similar to the RedGate SQL Prompt function "Copy as IN Clause".
To use this, you return results into the grid. Then select a range of values in one column and select "Copy as new List<string>" from the context menu. It then copies the C# code for creating a List<string> with those values to the clipboard. For example:
new List<string> {
"OMO-155165",
"PQJ-155177",
"ABI-155153",
"HCI-155167"
}
3
votes
Chris Payne
shared this idea