LINQ to SQL associations - how to change the value of associated field

Posted by HAdes on Stack Overflow See other posts from Stack Overflow or by HAdes
Published on 2008-10-13T14:24:27Z Indexed on 2010/04/15 20:23 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about linq-to-sql