“A cycle was detected in the set of changes” with Linq to SQL
问题 I am currently developing an application in which i experience the exception "A cycle was detected in the set of changes" when calling DataContext.SubmitChanges(). I know why this exception is thrown but i have not been able to find a fix for my situation. Let me explain the situation. I have a database with a table as shown below which i access with LINQ to SQL so it gets mapped to classes in vb.net. Device ------- ID DefaultGatewayID The DefaultGatewayID is a Device an can even be the same