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

How to use LINQ to Entities

Once you've created an Entity Data Model as shown in the previous chapter, this chapter shows you how to use LINQ to Entities in conjunction with that Entity Data Model to retrieve, insert, update, and delete data.

Chapter 18 How to use LINQ to Entities
How to retrieve data 578
How to retrieve data from a single table 578
How to query across relationships 580
How to load related objects 582
How to use a stored procedure 584
How to insert, update, and delete data 586
How to modify an existing row 586
How to delete an existing row 588
How to add a new row 590
How to provide for concurrency 592
How to work with bound controls 594
How to create an object data source 594
How to bind controls 596
A Vendor Maintenance application 598
The user interface 598
The Entity Data Model 600
The code for the PayablesEntity module 600
The code for the Vendor Maintenance form 602
The code for the Add/Modify Vendor form 606




Murach's ADO.NET 3.5 with C# 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.