How to set the DataContext class name with DbMetal?

寵の児 提交于 2019-11-28 11:33:43

问题


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



来源:https://stackoverflow.com/questions/4878493/how-to-set-the-datacontext-class-name-with-dbmetal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!