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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top