I actually have no final answer for you - but two possible solutions that you could study, perhaps in the near future:
1) There is a set of CodeSmith templates called PLINQO that generate your Linq-to-SQL (DBMX) model and related * .cs files from your database. I asked them about Entity Framework support, and they confirmed that they are working on it - so maybe they will do it soon.
Since these are code generation and model generation templates, you can definitely take them for Linq-to-SQL and configure them for EDMX. A bit of work, but definitely possible. Once you have the * .cs and * .edmx files, you can generate the resulting assembly from it using the CSC command-line compiler (C #), which is installed on every computer that has .NET installed.
2) With .NET 4, the new Entity Framework 4 will include T4 templates (another code generation technology) that will allow you to customize code generation. The same situation applies here: you can externally generate your EDMX model and its associated * .cs files for classes and generate the assembly on the fly from these templates.
See another blog post on this topic, and you should find a lot of information at startup (or bing) or "EF4 T4 templates".
Hope this helps at least a bit!
source share