Search code examples
c#namespacessqlmetal

sqlmetal.exe adding a namespace to the partial classes automatically


Is it possible to add a namespace to all the partial classes that sqlmetal.exe generates? I could do this manually but would like it automate it.


Solution

  • use the /namespace flag when running sqlmetal, MSDN

    ex:

    sqlmetal /namespace:nwind /code:nwind.cs /language:csharp mymetal.dbml