How do I generate Entity Framework 4.0 classes from the command line that have different names than
Posted
by Josh Kodroff
on Stack Overflow
See other posts from Stack Overflow
or by Josh Kodroff
Published on 2010-06-09T15:54:38Z
Indexed on
2010/06/09
19:42 UTC
Read the original article
Hit count: 156
entity-framework
|command-line
I want to generate Entity Framework 4.0 classes from a (legacy) database from a command line, but I have 2 transformations I want:
- Tables/columns are lowerCamelCase and I want my classes/members to be UpperCamelCase.
- I want to suffix my classes with "Dto".
Any idea how this might be accomplished? I'm a total newbie to EF, but I have a decent understanding of Linq to Sql and was able to accomplish the same task by doing: sqlmetal -> dbml -> xml mapping file and .cs file.
© Stack Overflow or respective owner