Linq2sql code generator misbehaving
- by Martin
Sometime the linq2sql just makes its mind up about things. I've been pulling my hair for the past hours trying to work out what I'm doing differently from all the other times when I don't get ForeignKeyReferenceAlreadyHasValueException.
Turns out that
if (this._Activity.HasLoadedOrAssignedValue)
{
throw new…