Text;
using System.Windows.Forms;
using System.Reflection;
using System.Data.Ling.Provider;
using System.Linq.Expressions;
You need to include this namespace because it provides the capability to represent language-level
expressions as objects in the form of expression trees.
Press F5 again, and when the application runs, click button5. This time the list box should be populated
with the ContactID, FirstName, LastName, and Title of the employees whose manager has a ManagerID
of 21.
Whew! That was a lot, but you now have a good understanding of how LINQ to SQL is used to call stored
procedures and user-defined functions using input and output parameters, deal with multiple resultsets,
and return rows of data.
243
Part III: LINQ to SQL
Summary
This chapter introduced you to LINQ to SQL queries, providing an in-depth look at the components and
concepts that make LINQ to SQL queries possible. You first explored LINQ to SQL query concepts, the
key points that give LINQ to SQL queries their power.
Then you learned about the DataContext class, the important role it plays in LINQ to SQL, and the
functionality it provides when executing queries.
Pages:
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394