SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 473 | Next

Scott Klein

"Professional LINQ"

Entity classes can be used as object
data sources, and as such can be added to the Data Sources window and placed on forms like any other
Windows Forms controls. By placing an entity-based data source on a Windows form, you can create
databound controls.
On the first page of the wizard, choose a data source type (specify where your data for the data source
will come from). By default, Database is selected, but what you want to select is Object because the
data will be coming from an entity object. So, select Object and click Next.
The next page asks you to select the object that you would like to bind to. Listed on this page are those
objects in the current assembly. Your project is listed, and you need to expand that node to get to the
information you want. Expand the LINQ node and select the Contact object (see Figure 15-18).
Notice that all of the objects here are objects within your project plus entities you have defined in the
O/R Designer.
305
Part III: LINQ to SQL
Figure 15-17
Figure 15-18
306
Chapter 15: Advanced LINQ to SQL Topics
By default, the Hide Assemblies That Begin With Microsoft or System option at the bottom of the page is
checked.


Pages:
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6