开发者

LINQ and data visualization

when we populate dataset or datatable the we can place the cursor on the instace of datatable or dataset and then a popup comes and there is a button where we click and then a window appear with data from there we can see what data is stored in dataset or datatable. so when we work with linq is there any way to see what data is stored in linq resultset please discuss in detail how to see what data is fetched and stored in linq res开发者_如何学JAVAult set when we debug. thanks


Because LINQ expressions usually result in a projection with lazy evaluation and deferred execution, in order to see the results of a LINQ expression, it needs to be executed.

There is a little green "cycle" arrow saying something like "enumerate results" in the watch window that, when clicked, will execute the expression and show the results.


Nevertheless: have a look at LINQPad. I believe it will have exactly what you need

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜