DbLinq's DbMetal generates a Main
class which inherits DataContext
. I don't want it to be Main
. How to change that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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"?