开发者

linqpad hide specific column or restrict row to single line

ATable.Dump() in linqpad returns the whole ATable. However, ATable.Single().MassiveColumn contains too much data and it fills up the whole results page.

Is there a way to either:

  1. Write this more concisely ATable.Select(t=> new {col1 = t.column1, col2 = t.column2, ..., coln = t.columnn}) and omit MassiveColumn. (The table has about 20 columns and I want to select everything except MassiveColumn)

  2. Hide MassiveColumn from being dumped.

Or is there any other options to restrict the dump to on开发者_JAVA技巧ly allow one line per row.


There's an option to limit column widths in Edit | Preferences | Advanced (last option in list).

Would that help?


This should also work:

ATable.Dump(exclude:"MassiveColumn");

If you want to exclude more columns, you can do this

ATable.Dump(exclude:"MassiveColumn1,MassiveColumn2");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜