Adding Self-Tracking Entity template cause complie error "Collection was modified" in unit test proejct

Posted on 2011-04-25
Last Modified: 2012-06-27
I've added an Entity Data Model to my project and added a table to it.  My project and unit test project compiles fine.

Then when I try to add a Self Tracking Entity Template my project compiles but my unit test project gives the following error when compiling:

"Colleciton was modified; enumeration may not execute".

Does anyone know why this error is occuring?
Question by:weimha
    LVL 96

    Accepted Solution

    I haven't seen that error before, but you say that it happened on compile time?  That sounds like a bug, but I am not about what approach you used with the self-tracking entity stuff...

    Author Comment

    We decided not to do self-tracking entities because it was requiring to much work.

    Author Closing Comment

    A solution was not found, but it is not needed.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Article by: Ivo
    Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now