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

Scott Klein

"Professional LINQ"

cs /language:csharp
Figure 15-14 below shows how this is executed in a command window.
Figure 15-14
As with the previous example, after the command successfully executes, browse to the directory where
the SqlMetal tool is located, and you should see in the directory a filed called aw.cs. You can also specify
a location when generating the metadata, as shown here:
sqlmetal /server:avalonserver /database:AdventureWorks /code:@@ta
c:\wrox\aw.cs /language:csharp
Now that the two files are generated, you want to include them in the project. Right-click the project
name, and select Add ??? Existing Item from the context menu. Because no directories were specified for
the generated files in the preceding examples, both files will be in the same directory as the SqlMetal.exe
file, which is \Program Files\Microsoft SDKs\Windows\v6.0A\bin.
Browse to that directory, and add both the aw.cs file and the aw.dbml file. You??™ll notice that Visual
Studio creates the same file structure that you saw when you added the LINQ to SQL class manually.
Figure 15-15 shows this.


Pages:
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6