How to set the DataContext class name with DbMetal?

680 views Asked by At

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

1

There are 1 answers

1
Please treat your mods well. On BEST ANSWER

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"?