Question

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 much appreciated.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top