SharePoint - insert list item into a folder using LINQ

Posted by Itay Shakury on Stack Overflow See other posts from Stack Overflow or by Itay Shakury
Published on 2010-05-03T06:41:34Z Indexed on 2010/05/11 18:14 UTC
Read the original article Hit count: 367

Filed under:
|
|

Hello, I am trying to use the new LINQ notation to add an item into a folder. I can add the item to the root of the list with:

dataContext.MyList.InsertOnSubmit(mynewObject);

But I can't find a way to make it go inside a folder. I am trying to avoid instanciating SPWeb, or SPSite objects.

Thanks, Itay,

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about sharepoint2010