{"Коллекция была изменена; невозможно выполнить операцию перечисления."}
в System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
в System.Collections.Generic.List`1.Enumerator.MoveNextRare()
в System.Collections.Generic.List`1.Enumerator.MoveNext()
в System.Data.Entity.Core.Objects.EntityEntry.TakeSnapshotOfRelationships()
в System.Data.Entity.Core.Objects.Internal.EntityWrapperWithoutRelationships`1.TakeSnapshotOfRelationships(EntityEntry entry)
в System.Data.Entity.Core.Objects.ObjectContext.AddSingleObject(EntitySet entitySet, IEntityWrapper wrappedEntity, String argumentName)
в System.Data.Entity.Core.Objects.ObjectContext.AddObject(String entitySetName, Object entity)
в System.Data.Entity.Internal.Linq.InternalSet`1.<>c__DisplayClassd.<Add>b__c()
в System.Data.Entity.Internal.Linq.InternalSet`1.ActOnSet(Action action, EntityState newState, Object entity, String methodName)
в System.Data.Entity.Internal.Linq.InternalSet`1.Add(Object entity)
в System.Data.Entity.DbSet`1.Add(TEntity entity)
в Data.EFRepository.EFBaseDao`1.Create(T entity) в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\Data\EFRepository\EFBaseDao.cs:строка 21
в ContosoUI.ProductForm.ProductModel.Create(Product productToSave) в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\ContosoUI\ProductForm\ProductModel.cs:строка 36
в ContosoUI.ProductForm.ProductPresenter.SaveProduct() в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\ContosoUI\ProductForm\ProductPresenter.cs:строка 118
в ContosoUI.ProductForm.ProductPresenter.Save() в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\ContosoUI\ProductForm\ProductPresenter.cs:строка 88
в ContosoUI.ProductForm.ProductView.barSaveButton_ItemClick(Object sender, ItemClickEventArgs e) в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\ContosoUI\ProductForm\ProductView.cs:строка 127
в DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
в DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link)
в DevExpress.XtraBars.BarItemLink.OnLinkClick()
в DevExpress.XtraBars.BarButtonItemLink.OnLinkClick()
в DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
в DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
в DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
в DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
в DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
в DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
в DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DXMouseEventArgs e, RibbonHitInfo hitInfo)
в DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
в DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
в DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
в DevExpress.XtraBars.Ribbon.RibbonControl.WndProc(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
в DevExpress.Utils.Drawing.Helpers.NativeMethods.UnsafeNativeMethods.DefSubclassProc(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam)
в DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam, IntPtr uIdSubclass, IntPtr dwRefData)
в System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
в System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
в System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
в System.Windows.Forms.Application.Run(Form mainForm)
в ContosoUI.Program.Main() в d:\GIT\STUDENTS\CS1_Project\Solution\ContosoProject\ContosoUI\Program.cs:строка 30
в System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()
{"Коллекция была изменена; невозможно выполнить операцию перечисления."}