Updating value in Linq to SQL IEnumerable

Posted by Learner on Stack Overflow See other posts from Stack Overflow or by Learner
Published on 2008-12-11T22:07:06Z Indexed on 2010/03/16 16:01 UTC
Read the original article Hit count: 194

Filed under:
|

Using Linq to SQL:

if(!parentlist.childlist.Contains(row1))
      parentlist.childlist.Add(row1);
else

How do I update the required childlist row with row1? Each row of the child list has a unique id.

parentlist implements IEnumerable and childlist is IList.

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql