Murach's ADO.NET 3.5, LINQ,
and the Entity Framework with VB 2008

How to use LINQ to SQL (part 1)

LINQ to SQL saves you time by letting you work with the data in a 3-layer application using an object model instead of creating business and database classes for that purpose. This chapter gets you started with LINQ to SQL by showing you how to create an object model and how to use it in retrieving data from a SQL Server database.

Chapter 13 How to use LINQ to SQL (part 1)
An introduction to LINQ to SQL 416
How LINQ to SQL works 416
The basic components of an object model 416
How to create an object model using the O/R Designer 418
How to start a new object model 418
How to create entity classes 420
How to create data context methods that retrieve data 422
The code that’s generated for an object model 424
How to retrieve data from a database 428
How to retrieve data from a single table 428
How to query across relationships 430
How to load related objects 432
How to retrieve data using data context methods 434
How to get information about the SQL command for a query 436
How to work with bound controls 438
How to create an object data source from an entity class 438
How to bind controls 440
A Vendor Invoices application 442
The user interface 442
The object model 442
The code for the Vendor Invoices form 444

Murach's ADO.NET 3.5 with VB 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.