LINQ to SQL associations - how to change the value of associated field
- by HAdes
I have 2 classes with a LINQ association between them i.e.:
Table1: Table2:
ID ID
Name Description
ForiegnID
The association here is between Table1.ID - Table2.ForiegnID
I need to be able to change the value of Table2.ForiegnID, however I can't and think it is because of the association (as when I remove it, it works).
Therefore, does anyone know how I can change the value of the associated field Table2.ForiegnID?
Thanks.