84
3
716
28.84
1
771
2039.99
1
Once you have created the Orders.xml file, fire up Visual Studio and create a new C# Windows project.
In the Project types section, expand the C# node. Select the LINQ to XSD Preview project type, and then
choose the LINQ to XSD Windows Application from the list of project templates (see Figure C-1).
Name the project LINQ, specifying the appropriate location in which to create the project. Click OK.
Now open the Solution Explorer and expand the References node. Besides the typical LINQ reference of
System.Xml.Linq, you??™ll see a new reference to Microsoft.Xml.Schema.Linq, shown in Figure C-2. This
namespace contains all the XML classes that provide the LINQ to XSD mapping functionality and XSD
schema definition support.
Next, open Form1 in design mode and drop a couple of buttons and a text box on the form.
Pages:
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539