In the LLBLGenPro Designer v3.1 I'm allowed to have two model views with the same name (e.g. "Test") and when I try to reopen the "llblgenproj" file, it generates an ArgumentException "An item with the same key has already been added" as attached below. It took me some time to discover the correlation between the two.
Shouldn't non-unique identification of model views (or other objects for that matter) be disabled?
regards Jan
Exception information.
LLBLGen Pro version: v3.1. Build: February 7th, 2011
Exception details:
Message: An item with the same key has already been added.
Source: mscorlib
Stack trace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func`2 keySelector)
at SD.LLBLGen.Pro.ApplicationCore.EntityModel.ModelViews.ModelViewList.DeserializeLayoutInformation(XmlReader reader, Project containingProject)
at SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.DeserializeLayoutInformation(XmlReader reader)
at SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.Load(String filename, String additionalTypeConverterFolder)
at SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformOpenProjectAction(String filenameToOpen)
Inner exception: <null>