开发者

How to set the DataContext class name with DbMetal?

开发者 https://www.devze.com 2023-02-08 08:32 出处:网络
DbLinq\'s DbMetal generates a Main class which inherits DataContext. I don开发者_JAVA技巧\'t want it to be Main. How to change that?DbMetal will always generate a class called Main by default. However

DbLinq's DbMetal generates a Main class which inherits DataContext. I don开发者_JAVA技巧'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"?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号