[Mono-list] SqlMetal custom DataContext name
trampster at gmail.com
Tue Dec 7 06:00:23 EST 2010
I am using SqlMetal in ubuntu 10.10 to create code for connecting to
an existing sqlite database.
By default the generated DataContext class name is Main.
This causes problems for obvious reasons (really, I couldn't think of
a default more likely to conflict)
In the Microsoft sqlmetal you use the /Context switch to specify a
custom name, however on the mono one I can't find a switch which will
do this. Also the microsoft one uses the database name as the
DataContext default (which makes much more sense, and would be fine in
So how do I customize the DataContext name?
More information about the Mono-list