Building Interactive Queries with LINQPad by Sébastien Finot

By Sébastien Finot

find out how to question databases interactively utilizing LINQ and LINQPad


  • Leverage the ability of LINQPad to profit LINQ
  • Discover LINQPad’s key beneficial properties and options
  • Learn concerning the cool functions of LINQPad akin to checking out, code snippet new release, and so on

In Detail

If you must have interaction with databases, XML, in-memory collections, or distant providers, LINQ could make your lifestyles easier. the right way to become aware of LINQ is with assistance from LINQPad, a unfastened IDE whose first objective is to ensure that writing and interacting together with your LINQ question is enjoyable and simple. extra in general, LINQPad is a C#/VB/F# scratchpad that immediately executes any expression, assertion block, or software with wealthy output formatting and a wealth of features.

With construction Interactive Queries with LINQPad, you'll speedy examine every thing you must recognize to begin utilizing LINQ. To speed up your studying curve, you can find the way to use LINQPad and its beneficial properties to check your queries interactively and scan with the entire ideas provided by means of LINQ.

In all chance, you understand C#, yet have you ever had an opportunity to attempt out LINQ? development Interactive Queries with LINQPad will introduce you to every thing LINQ can supply and may allow you to have interaction with each instance in LINQPad, LINQ’s most sensible companion.

You will how you can construct and scan with interactive queries with this functional consultant illustrated with brief and precise code samples. additionally, you will get familiar with different cool functions of LINQpad reminiscent of trying out, code snippet new release, and so forth, in addition to a large method of LINQ (to item, to SQL, to XML, and so on).

What you'll examine from this book

  • Discover what LINQ can do and the way it's going to aid you
  • Learn all approximately LINQ question operators to affix, combination, choose, and clear out data
  • Write LINQ queries with either procedure and question syntaxes
  • Query databases and distant companies utilizing LINQ
  • Create and control XML and in-memory collections
  • Differentiate LINQPad’s question types
  • Handle person enter with LINQPad
  • Customize LINQPad to suit your flavor or workflow


A step by step functional consultant that might introduce you to LINQPad’s key positive factors, thereby supporting you to question databases interactively.

Who this booklet is written for

This booklet is aimed toward C#/.Net builders who desire to study LINQ programming and leverage the simple approach of utilizing LINQPad. No past wisdom of LINQ or LINQPad is predicted. A easy wisdom of SQL and XML is needed for a few chapters.

Show description

Read Online or Download Building Interactive Queries with LINQPad PDF

Similar c# books

Developing. NET Custom Controls & Designers using C

Bankruptcy 1 brought the reader to the e-book by means of describing what the e-book will disguise, picking the viewers and what the reader should still already be aware of, and the recapping the heritage of keep watch over reusability. bankruptcy 2 introduces the reader to occasions and occasion handlers. It additionally discusses delegates and their comparability to operate guidelines.

Beginning C# 2008 Objects: From Concept to Code (Expert's Voice in .Net)

Up to date with the alterations to C#, starting C# 2008 gadgets: From suggestions to Code introduces entire rookies to C# coding perform with an exceptional methodological beginning written through critically–acclaimed specialists within the box, already authors of the best–selling starting C# items. via construction from first ideas in object–oriented terminology, then advancing via program layout with Unified Modeling Language (UML) into useful examples, starting C# 2008 items: From thoughts to Code offers a foundational consultant written from the point of view of 2 skilled, operating gurus on C#.

Pro ASP.NET Web API: HTTP Web Services in ASP.NET (Expert's Voice in .NET)

Professional ASP. internet net API exhibits you ways to construct versatile, extensible internet companies that run seamlessly on a variety of working structures and units, from pcs to drugs to shrewdpermanent phones—even those we don’t understand this day. ASP. web net API is a brand new framework designed to simplify internet provider structure.

Additional info for Building Interactive Queries with LINQPad

Sample text

Linq LINQPad Also, if you are a Pro or Premium user, you can opt to use the smart-tag for importing your missing namespaces: LINQPad's Dump() method "Dump" is an incredibly useful extension that will help you debug and understand how your code works, or what information is available to you. FileInfo class. The FileInfo class provides information on the file you specify when creating a new instance of the class. exe") Note that the trailing semicolon needs to be omitted. The Dump extension uses reflection to know how the object you are dumping is built, and what its values are.

Dump(); } The LINQ query (highlighted code) is shorter and much more readable. Let's decompose this query, as done in the following screenshot: The Where, OrderBy, Skip, and Take operators are four of the many query operators provided by LINQ (we will see them in detail in Chapter 4, Discovering LINQ Query Operators, and onwards). 0). [ 34 ] Chapter 3 The C# extensions allow you to give the illusion that you extend a class (even a sealed one) with new methods. In reality, it's just syntactic sugar as the compiler rewrites it in a more conventional way.

NET assembly, one that you created (for example, containing all your business objects) or using one from a third party, you can reference them in any of the following ways. Adding it manually To add an assembly manually, the following steps need to be performed: 1. Create a new query or load an existing one. 2. Go to Query | Query Properties (or press F4). [ 22 ] Chapter 2 3. The Query Properties dialog box will open, which is depicted in the following screenshot: 4. NET Framework, or is in the GAC, click on Add… and select it from the list.

Download PDF sample

Rated 4.67 of 5 – based on 47 votes