This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Is there any way in EF 4.1 to globally prefix all table names? In CTP5 we used custom convension for this.
David
Hi David,
The following articles demonstrates a workaround on how to implement custom and global conventions in EF 4.1.
http://dotnetspeak.com/index.php/2011/03/custom-conventions-in-entity-framework-code-first-v-4-1/
http://dotnetspeak.com/index.php/2011/04/global-conventions-in-entity-framework-code-first-v-4-1/
Note, that this workaround uses internal types by Reflection and so:
· May break completely in future releases
· May not work in a partial trust environment such as when bin-deployed to a hoster.
Thank you,
Julia
Sergey