I am currently using SqlMetal to generate my dbml and code file. I am using Visual Studio 2010 and SqlServer 2000. Unfortunately Visual Studio 2010 only support SqlServer 2005 or greater so I am unable to generate the code using the built-in wizard.
I have been generating my dbml and code files by using:
>sqlmetal /server:myServer /database:myDatabase /dbml:myDatabase.dbml
>sqlmetal /code:myDatabase.cs myDatabase.dbml
I have noticed there is a map file option.
Generates an XML mapping file instead of attributes. Cannot be used with /dbml option.
I was wondering if I should also be using a map file? What is the advantages to a map file over code attributes?