From MSDN: How to: Write to Lists Using LINQ to SharePoint
The particularly interesting code snippet:
// Create the new list item. TeamMember bob = new TeamMember() { Title="Bob Smith" }; // Set the item to be inserted. teamSite.TeamMembers.InsertOnSubmit(bob); // Write changes to the content database. teamSite.SubmitChanges();
Easy as that!
0 comments:
Post a Comment