DbLinq's DbMetal generates a Main
class which inherits DataContext
. I don't want it to be Main
. How to change that?
Asked
Active
Viewed 676 times
1

DamienG
- 6,575
- 27
- 43

Jader Dias
- 88,211
- 155
- 421
- 625
-
Duplicate: http://stackoverflow.com/questions/3409241/why-does-dbmetal-generate-table-attribute-with-main – Jader Dias Feb 09 '11 at 14:58
1 Answers
4
DbMetal will always generate a class called Main
by default. However, you can use the --database option when generating the .dbml.
Oops: found this here in SO: Why does DbMetal Generate Table Attribute with "main"?

Community
- 1
- 1

Please treat your mods well.
- 4,321
- 1
- 25
- 35
-
It worked! I thought this argument would search for another database inside the file, but it uses the same database and only renames the generated class. – Jader Dias Feb 09 '11 at 14:55