The namespace 'x' already contains a definition for 'FixupCollection'

Each time I update the entity model (by right-clicking on the .edmx file and selecting "update model from the database"), it creates a new model.tt file (which ends with the name model1.tt, etc.), which then generates this error.

Then I delete model1.tt to fix it. But..

How can I avoid this? Is there a better way to update the model?

+4
source share
3 answers

I came to the conclusion that the answer to this question is that the code generator is not smart enough to generate a model twice with different object names or that it is designed by design. (which means remove your own model to create a new one)

0
source

See this article on including multiple .edmx files and find out if this helps solve your problem:

http://msdn.microsoft.com/en-us/library/cc982041.aspx

Hope this helps!

+2
source

I had the same problem after upgrading my SP 2007 solution to SP 2010.

What I did to solve this problem was to delete all the links and rebuild each project and add a link to another project, and everything works fine.

+1
source

Source: https://habr.com/ru/post/1332391/


All Articles