Let??™s get started.
Open Visual Studio 2008 and create a new C# project; name it Fabrikam. When the project is created,
ensure that the necessary LINQ references are included in your project:
System.Data.DataSetExtensions
System.Data.Linq
System.Xml
System.Xml.Linq
Then you have to add an application configuration file. In Solution Explorer, right-click on the solution
and select Add ??? New Item from the context menu. In the Add New Item dialog, select Application
Configuration File. Make sure the name is App.Config and click OK.
Next, right-click on the solution and select Properties. In the Fabrikam solution Properties window, select
the Settings tab along the left side of the window. Here you need to add a property for the Fabrikam
application to use. Enter the information in the following table.
314
Appendix A: Case Study
Setting Value
Name BusinessName
Type string
Scope Application
Value Fabrikam Fine Furniture
Figure A-1 shows what the Settings page should look like.
Figure A-1
This information will be stored in the application configuration file and you can change it to any value
you want at a later date.
Pages:
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492