/serialization:option Generates serializable classes.
Inputfile Denotes a SQL Server Express .mdf file.
/? Outputs the most current option list.
The /language option has two available languages??”C# and VB. If no value is specified, the default value
is taken from the extension on the code filename.
The /serialization option has the available values of None and Unidirectional. The default value
is None.
Using the SqlMetal tool is a two-step process:
1. Extract the database metadata into a specified .dbml file.
2. Generate the output code file using the appropriate options specified in the preceding table.
Here are a few notes of interest before you look at some examples:
??‘ When you generate the code you can select C#, Visual Basic, or an XML mapping file.
??‘ If the /server option is not specified, the default value of localhost/sqlexpress is used.
??‘ Extracting metadata from an MDF file requires that the name of the MDF file be included after all
the other options.
The SqlMetal tool is located in the \Program Files\Microsoft SDKs\Windows\v6.
Pages:
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473