相关资源

image.png

  • 输入查询语句

image.png

  • 通过Dump转存数据,先定义变量IQueryable,查询语句就是LINQ

    Dump使用

    ```csharp // LINQPad’s “Dump” extension method will eat just about anything!

123.Dump();

Regex.Match (“my favorite color is…”, “colou?r”).Dump(); // LINQPad is great for Regex testing!

// Dump accepts an optional title for formatting:

TimeZoneInfo.Local.Dump (“Bet you never knew this type existed!”);

// Dump returns exactly what it was given, so you can sneakily inject // a Dump (or even many Dumps) within an expression. This is useful // for monitoring a query as it progresses:

new[] { 11, 5, 17, 7, 13 } .Dump (“Prime numbers”) .Where (n => n > 10) .Dump (“Prime numbers > 10”) .OrderBy (n => n) .Dump (“Prime numbers > 10 sorted”) .Select (n => n * 10) .Dump (“Prime numbers > 10 sorted, times 10!”);

// Or you can do this: DateTime now = DateTime.Now.Dump(); ``` image.png