An attempt was made to connect or Add an entity that is not new, possibly being loaded from another DataContext. This is not supported.
Having been working with Linq to SQL for some time, I believe that I know about its limitations and that I follow the rules when writing new code. But this exception is a disappointment, as there is no indication of which object caused the violation. In complex data processing scenarios with multiple domain controllers, I can only think of trial errors to narrow down the possible culprits. Is there any way to find out more?
DataContext, . DataContext, DataContext.
, DataContext, " ".
, , , , , DataContext. , DataContext.
Linq to SQL , , , , . , DataContexts. ( , "" "" ), .
Source: https://habr.com/ru/post/1726254/More articles:VBA Zip file error - vbaCustom code with GRUB? - linuxQuestion about Perl Array - arraysstatic variable allocation time in .net - c #How to determine if a Linq object was bound to a data context? - c #How to call WCF Ria Service / DomainService from jQuery? - jqueryСкрыть (свернуть) Детали JQgrid при загрузке страницы - jqgridМноголинейное управление редактирования Win32 теряет возврат каретки в SetWindowText() - windowsWhat is the difference between mx / fx / s object types in Flex 4? - flexMXML Packages and Components - flexAll Articles