A lightweight code scratchpad for C#/F#/VB and database querying tool that supports both SQL and LINQ. Written by Joe Albahari.
LINQPad can be downloaded free from http://www.linqpad.net. Its main features are:
- Runs code snippets in C#, VB.NET and F#, for .NET 3.5, 4.0, 4.5 and 4.6.
- Executes queries on databases and other sources directly in LINQ (or SQL).
- Explicit support for popular APIs such as LINQ-to-SQL, Entity Framework and OData, and databases such as SQL/Azure, SQLite, MySQL, Oracle and PostgreSQL.
- Allows referencing custom assemblies and NuGet packages.
- Built-in "object dumper" to facilitate easy experimentation. Recognizes and specially formats output from popular APIs such as Reactive Extensions.
- Command-line support for automating scripts.
- Built-in autocompletion and debugging (license purchase required).
LINQPad is popular for testing C# snippets. It also has built-in samples to help with learning LINQ.
Another program similiar to linqpad is roslynpad You even can query stackoverflow using linqpad