开发者

Use EdmGen to generate ssdl, and csdl but NOT generate code?

I am working with a large Entity Framework 4.0 edmx, and need to automate the construction of the edmx. However, I needto maintain the ability to use customized T4 templates.

In our edmx, we have code generation set to None, so we can use multiple T4 templates against the edmx. When I build using EdmGen, the code is generated using the default template.

I experimented with EdmGen2, and it can be customized to allow for our T4 templates, but it wasn't able to correctly pluralize collection names, even with the .edmx property explicitly set.

Any help to get EdmGen or EdmGen2 to work in this situation would be m开发者_StackOverflow社区uch appreciated.


I was able to make EdmGen2 handle pluralization correctly.

The CSDL generator does not, in the current version of EdmGen2, have a PluralizationService configured. With a one line modification to force it to use the default pluralization service, it builds the correctly pluralized csdl.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜