1

Possible Duplicate:
How to set the DataContext class name with DbMetal?

I use DbMetal in my pre-build event to generate the desired code file. DbMetal generates a class called Main. In its wiki I can'f find a parameter to change that default value.

In the pre-build event (after generating that code file above) I would like to automatically refactor and change the class name.

Is there any native way to do so within the pre-build events?

If not I would be forced to write my own little parser that does the job and call it there.


(I actually don't know wheter pre-/post-build events are supported in VS2005/2008. Feel free to add the tags of this question.)

Community
  • 1
  • 1
fjdumont
  • 1,517
  • 1
  • 9
  • 22
  • It is right on the first google hit, Brian's comment on June 19th. http://code.google.com/p/dblinq2007/wiki/DbMetal – Hans Passant Jan 13 '12 at 14:14
  • Duplicate of http://stackoverflow.com/questions/3409241/why-does-dbmetal-generate-table-attribute-with-main, and http://stackoverflow.com/questions/4878493/how-to-set-the-datacontext-class-name-with-dbmetal – M.Babcock Jan 13 '12 at 14:15
  • Hans Passant: You might want to post this as an answer ;) My bad, Seems like I have totally missed those comments. – fjdumont Jan 13 '12 at 14:27

0 Answers0