1

DbLinq's DbMetal generates a Main class which inherits DataContext. I don't want it to be Main. How to change that?

DamienG
  • 6,575
  • 27
  • 43
Jader Dias
  • 88,211
  • 155
  • 421
  • 625

1 Answers1

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
  • 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