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 508 | Next

Scott Klein

"Professional LINQ"

For this example, enter AdventureWorksEntities. Click Next.
The next page in the wizard asks you to select the database objects that you want to include in the model.
By default, all the objects are selected including tables, views, and stored procedures. For this project,
unselect all the objects, as shown in Figure B-5.
Now expand the Tables node, and select the following tables:
??‘ Contact
??‘ SalesOrderHeader
??‘ SalesOrderDetail
333
Appendix B: LINQ to Entities: The ADO.NET Entity Framework
??‘ SpecialOfferProduct
??‘ Product
Figure B-3
334
Appendix B: LINQ to Entities: The ADO.NET Entity Framework
Figure B-4
Figure B-5
335
Appendix B: LINQ to Entities: The ADO.NET Entity Framework
At the bottom of the wizard page, name the Model Namespace. It is good practice to begin the name with
the same name you gave the entity on the previous page. For this exercise, use the name
AdventureWorksModel.
The Model Namespace name and the Entity Connection Settings name must be
different, like the ones in this example: AdventureWorksEntities and
AdventureWorksModel.


Pages:
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6