0
votes
1answer
41 views

Shortcut to use LINQ

http://msdn.microsoft.com/en-us/library/ff742311.aspx Based on the link above you have to make a detour before you can use syntax code LINQ for SharePoint. If you have to do the same approach for ...
1
vote
0answers
175 views

Linq to Sharepoint throws System.IndexOutOfRangeException

I have used entity class generated from SPMetal to retrieve data from sharepoint list. Frequently I am getting the below error on the sharepoint page and not able to do anything in the site. This ...
0
votes
1answer
59 views

Understanding SPMetal and Linq

If I generate .cs file using SPMetal for my site and then use it in Visual Studio to develop web part using Linq. And later on I create a new list in my site, will I need to generate .cs file again?
0
votes
1answer
55 views

DirectoryNotFoundException when trying to read Picture Library using Linq

I am trying to read a picture library named "ImageLibrary" as follows: SPList list = web.GetList("ImageLibrary"); But I am getting following error: DirectoryNotFoundException How do I read ...
1
vote
1answer
159 views

SharePoint, LINQ & Reporting Services Tools

I'm new to SP and SSRS, so I want to check if my thoughts are correct. Report Builder and BIDS suck on data retrieval so I have to go deeper using code. Is it possible to write some code in C# using ...
1
vote
0answers
60 views

Is there a visual building tool to generate LINQ Queries? [closed]

Is there a visual building tool to generate LINQ Queries (from sharepoint lists) similar to CAML's U2U builder or CAML Designer? Thanks
0
votes
1answer
2k views

Getting items from rows 4-8 in a Sharepoint list using CAML query?

Here is the code Im using to retrieve the first 4 most upcoming announcements from the OOTB announcements list in sharepoint: How do I modify this to retrieve the next 4 (5,6,7 and 8) most upcoming ...
0
votes
2answers
1k views

Get Files from document library with LINQ

Hi I'm trying to get file from a documentLibray with LINQ Query. I've been trying with this code but I get nothing! var allegatiCollegati = (from SPFile attach in web.Lists.["Allegati"].items ...
0
votes
2answers
186 views

Delete item from COM. Don't find Item

I'm trying to delete but the code seems that can't find the Item field : try { using (ClientContext context = new ClientContext("http://to0wss2k10rey03/sites/ReplyCorp")) ...
0
votes
1answer
66 views

Get client query of a server query

I?m trying to get how can I get the query but on the client context? SPWeb webRoot = scSite.OpenWeb(); SPListItem selectedItem = (from SPListItem item in ...