How to set the DataContext class name with DbMetal?

前端 未结 1 753
予麋鹿
予麋鹿 2020-12-22 00:42

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

相关标签:
1条回答
  • 2020-12-22 01:15

    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 讨论(0)
提交回复
热议问题