Questions tagged [linqpad]

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 You even can query stackoverflow using linqpad

1017 questions
20
votes
1 answer

Filename/path of current query in LINQPad

Is there a way to get the filename of the current query in LINQPad - just as argv[0] in C? Getting only the directory name would also do.
Guðmundur H
  • 11,478
  • 3
  • 24
  • 22
20
votes
4 answers

Canonical Console.WriteLine in LinqPad

Linqpad's souped-up Console.WriteLine is awesome. However, how can I do a standard Console.WriteLine of an object?
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
18
votes
2 answers

How to increase limit of graph in LINQPad?

Results shown in LINQPad are limited. If objects are deep nested, a red line is shown. I would like to increase a limit, so I can see more nested objects. Do you know how to do it? (I have not find that in options.) Background not in the original…
TN.
  • 18,874
  • 30
  • 99
  • 157
18
votes
4 answers

LinqPad Tutorial

Hi I am looking forward to learn Linqpad. Can anybody tell me if there is any e-book or tutorial site that can help me learn Linqpad Step by Step from the starting. I tried searching it on the net, but was not able to find any good material. Please…
Running Rabbit
  • 2,634
  • 15
  • 48
  • 69
17
votes
4 answers

Cast string as Guid using LinqPad

When I run following in the LinqPad var ProductIds = from p in Products where p.Id = "F1FE990C-4525-4BFE-9E2C-A7AFFF0DDA1F" select p; ProductIds.Dump(); it gives me Cannot implicitly convert type 'string' to 'System.Guid' I just don't know how…
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
17
votes
4 answers

Steps for a beginner to run very basic linq to sql query using Linqpad

Trying to learn Linq using LinqPad and getting frustated with how to start on it. Let's say I want to write a C# Expression and a C# statment where I have a table in SQL server named Products and I want to pull all rows where price is greater then…
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
17
votes
4 answers

Connect LinqPad to WCF webservice with ?wsdl URI query

I want to connect LinqPad to a WCF web service which exposes its WSDL information at a URI of the form http://server.example.com/Product/Service/Version/Soap11?wsdl. I can successfully add this URI as a Visual Studio WCF web service reference, and…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
17
votes
1 answer

Using WebAPI in LINQPad?

When I tried to use the Selfhosted WebAPI in LINQPad, I just kept getting the same error that a controller for the class didn't exist. Do I have to create separate assemblies for the WebAPI (Controllers/Classes) and then reference them in my…
NoLifeKing
  • 1,909
  • 13
  • 27
16
votes
1 answer

LINQPad: Anyway to make the Dump() results be initially collapsed?

Couldn't find it anywhere (google or stackoverflow). Is there a way to force Dump()'s output to be automatically collapsed? Update: Some more info, to bring more focus to the question. As mentioned below Collapsing can be done after the output as…
Lockszmith
  • 2,173
  • 1
  • 29
  • 43
15
votes
1 answer

How can I connect to MySQL via LinqPad?

I hear you can install a MySQL plugin, but where can I get that?
Mark Kadlec
  • 8,036
  • 17
  • 60
  • 96
15
votes
2 answers

Is there a library that provides a formatted Dump( ) function like LinqPad?

I work with a lot of Linq queries in my code, and I'm looking for a library that provides a formatted Dump() function similar to what LinqPad offers. LinqPad's Dump() extension method is really quite nice, because it handles nested collections very…
Garrett Serack
  • 943
  • 7
  • 17
15
votes
1 answer

Native DLL in LINQPad

I am referencing the NuGet package ABCpdf, which provides a managed DLL abcpdf.dll and four pairs of native DLLs, in x86 and x64…
Ross Presser
  • 6,027
  • 1
  • 34
  • 66
15
votes
2 answers

Writing F# queries in LINQPad

I'm trying to use F# to construct a query against a database, but I can't get even the simplest of queries to compile. I can construct a C# query like this: from c in Categories select c Everything works fine. However, when I try to do what should…
p.s.w.g
  • 146,324
  • 30
  • 291
  • 331
15
votes
1 answer

Javascript equivalent to LinqPad

I'd like a small javascript scratchpad in which I can write and test (non-DOM related) functions. I'm not happy using the Firebug console to do this. Does such a thing exist as a standalone app?
spender
  • 117,338
  • 33
  • 229
  • 351
14
votes
2 answers

Connect LINQPad to remote SQL Server

Disclaimer: I understand the question is very basic, but I could not find the answer in Google or here, and can not do it myself with guessed configuration. I want to get started with LINQPad and I have a SQL Server 2005 installed on different…
trailmax
  • 34,305
  • 22
  • 140
  • 234
1 2
3
67 68