Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
570 views
in Technique[技术] by (71.8m points)

LINQPad Dump using Util.Run

I have a LINQ script that runs in a loop for a long time, over many records, and dumps the records it processed at the end of each iteration. So I see a dump of records as the script is running.

    foreach (string record in lotsOfRecords) {
       // do stuff ...
       record.Dump()
    }

When I run this from another script using Util.Compile, Util.run, I don't see the output from the results window as the application is running. But I can tell the script is running by seeing the database changes it is causing.

    using (var query = Util.Compile (myQueryPath))
    {
        query.Run (QueryResultFormat.HtmlFragment).AsString().Dump(); // no results
    }

I've tried Text, HTML and HTML fragment and I don't see any output while the script is running. I'm running LINQPad 5.43 (Pro)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.6k users

...