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

How to work with object data sources

This chapter shows you how to use object data sources, which are data sources that get their data from business objects. This lets you get the benefits of data binding and still keep the data access and business classes in their own layers of a 3-layer application.

Chapter 9 How to work with object data sources
An introduction to object data sources 278
How three-layer Windows applications work with object data sources 278
How to create an object data source 280
How to use an object data source 282
How to work with bound controls 284
How to work with a combo box 284
How to work with a text box 284
How to work with a DataGridView control 286
A Payment Entry application 288
The user interface 288
The class diagram for the PayablesData library 290
The code for the Vendor class 292
The code for the VendorDB class 292
The code for the Invoice class 296
The code for the InvoiceDB class 296
The code for the Vendor Invoices form 300
The code for the Payment Entry form 304




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.