/// 1. /// This command will create an xml file that the user can review. /// It will not be recognized by the system as a dbml file. /// No views, stored procedures or functions are included. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost // Not case sensitive /database:LinqTesterDB // Not case sensitive /dbml:ViewableFile // Input values = output names /language:csharp // Case sensitive /namespace:LinqTestNsOne // Input values = output names /context:LinqTestOneContext // Input values = output names /// 2. /// This command will create a dbml file that the system can use. /// It will be recognized by the system as a datacontext object. /// No views, stored procedures or functions are included. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost /database:LinqTesterDB /dbml:DbmlTestTwo.dbml /language:csharp /namespace:LinqTestNsTwo /context:LinqTestTwoContext /// 3. /// This command will create a dbml file that the system can use. /// It will be recognized by the system as a datacontext object. /// It will also attempt to pluralize the objects it finds. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost /database:LinqTesterDB /dbml:DbmlTestThree.dbml /language:csharp /namespace:LinqTestNsThree /context:LinqTestThreeContext /pluralize /// 4. /// This command will create a dbml file that the system can use. /// Objects will be serializable. /// All views, functions and sprocs will also be included. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost /database:LinqTesterDB /dbml:DbmlTestFour.dbml /language:csharp /namespace:LinqTestNsFour /context:LinqTestFourContext /serialization:Unidirectional /views /sprocs /functions /// 5. /// This command will create a code file that the system can use. /// Objects will be serializable. /// All views, functions and sprocs will also be included. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost /database:LinqTesterDB /code:CodeTestFive.cs /language:csharp /namespace:LinqTestNsFive /context:LinqTestFiveContext /serialization:Unidirectional /views /sprocs /functions /// 6. /// This command will create a code file that the system can use. /// It will also create a mapping file. /// Objects will be serializable. /// All views, functions and sprocs will also be included. C:\Projects\LinqTester\LinqTester\DataObjects>sqlmetal.exe /server:localhost /database:LinqTesterDB /code:CodeTestSix.cs /map:MapTestSix.map DbmlTestSix.dbml /language:csharp /namespace:LinqTestNsSix /context:LinqTestSixContext /serialization:Unidirectional /views /sprocs /functions