Fix for #849 - Code First pipeline errors with recent builds
Issue: For collections having greater than 25 elements, MetadataCollection<T> uses an internal dictionary for fast lookup by item identity. Using Code First, this dictionary can become out of sync because on the CF code path item identity is mutable during the model construction phase.
Solution: Instead of maintaining the fast-lookup dictionary on the fly, build it once after the build phase when the collection goes read only.
↧