Language Integrated Query, LINQ, is a .NET Framework component used for native data querying

learn more… | top users | synonyms

0
votes
2answers
142 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")) ...
-1
votes
2answers
509 views

Using linq to get aggregated total of distinct values from csv items in datatable

I am going to use linq to get datapoints for chart created in sharepoint from datatable this is datatable with 2 columns "task" and "users" task users task 1 john task 2 mike, ...
4
votes
1answer
196 views

Get SPListItem from LINQ

I have used SPMetal to create a data context. I can query my lists. The queries return an object of the type of list that they are in. Is it possible to convert this type into a normal SPListItem ...
2
votes
1answer
313 views

merge two lists with WCF Services and Linq

How do I merge two lists when using REST services? You can't use union with linq and dataservicequery so I'm not sure where to go. The following doesn't work with dataservicequery... var docQuery = ...
1
vote
1answer
299 views

System.Data.Linq the given assembly name or code base was invalid

I have a webservice in my sharepoint site which uses System.Data.Linq to add some data to the database. If I make a call to this webservice, I get the following error: The given assembly name or ...
0
votes
1answer
28 views

Problem with join two lists by linq

I wanna join two list and fill drop down list by specific column but i have error in join query note:c.user_id is lookup field my code lst.DataSource = (from c in dc.Complainant ...
0
votes
1answer
182 views

Security token service and custom claims provider - strange error

I have a custom claims provider, which uses some services from another assembly. This service assembly basically uses Linq-to-SQL context to read data from database which then custom claims provider ...
0
votes
1answer
352 views

Is it possible in LINQ to SharePoint

I have a task to make a WSP, which should provide definitions of custom list and library, but not instances. List definition has a lookup column to library item <Field ...
0
votes
1answer
202 views

How to do Scope=RecursiveAll with Linq To Sharepoit

I have the following CAML query: caml = string.Format("{0}", code); query = new SPQuery { Query = caml, ViewAttributes = "Scope = \"RecursiveAll\"" }; This query search in a document library a list ...
0
votes
1answer
117 views

How to iterage through Message content type in Discussion list

I need to iterate through all the columns (default + custom) in Message content type in Discussion list. i have used this code: //select a single discussion (in this case, the first one), to view ...
0
votes
1answer
630 views

An item with the same key has already been added when trying to recover my list using Linq (SPMetal)

I have a problem with my application SharePoint. The problem is that I added a List in my SharePoint site (directly in SharePoint), then I used SPMetal LINQ to generate a File in which I can recover ...
2
votes
0answers
286 views

Reverse lookup with Linq to SharePoint

I have two lists called ‘Events’ (custom list) and ‘Timeslots’ (calendar list), Timeslots has a lookup in to the id column of Events. Each event can have multiple timeslots. I need to show columns ...
2
votes
0answers
179 views

Resource throttling and LINQ / spmetal

Today I received an e-mail from a customer telling me their site broke. I checked the ULS and noticed resource throttling had kicked in on one of the sites. I'm used to this when using ...
1
vote
0answers
163 views

My List Content Type is no being found by SPMetal

I am trying to use Linq to Sharepoint for some custom reports but I am running into an issue trying to setup SPMetal. I generated the class but for one of my lists "ListA" only ID and Title fields ...
1
vote
0answers
136 views

Generating Entity List property for “Reusable Content” list

I am attempting to generate an entity class for "Reusable Content" list. After running the CKSDEV tool, i see that DataContext object has the following /// <summary> /// Items in this list ...
1
vote
0answers
191 views

Getting at InfoPath/form library data using LINQ to SharePoint

I'm teaching myself some basic SharePoint stuff, coming from three-tier ASP.NET, and before that, Java background. I've been trying to figure out how to do things "the SharePoint" way, rather than ...
1
vote
0answers
950 views

Inserting new item in list with EntityRef field to User Information List using Linq to SharePoint

I have a list with SPFieldUser field type in it. I try to insert new item in this list using Linq 2 SP. So, I generated data context class using the following configuration file: <List Name="User ...
0
votes
0answers
26 views

Perform Linq query, then add results to a list

I have a problem which is bogging me for days and I can't seem to fix it. I currently have 2 lists - "Job Positions" and "Applicants". I want to perform a table join where job position titles = ...
0
votes
0answers
15 views

Linq query multiple master tables

I have a question related to LINQ queries in SharePoint 2010. I have few master lists - 1> Team (ID, Name) 2> Lifecycle (ID, Name) 3> Technology (ID, Name) 4> Users (ID, Name) Then there is a mapping ...
0
votes
0answers
64 views

sharepoint 2010 linq query Assigned to column of list

i need to query using linq to assign to (person or group type column) i have generated my context class using SPMetal. any code example or url wil be appreciated. i need to know in context of ...
0
votes
0answers
25 views

LinqToSP crash with a user without owner privileges

I have this piece of code: using (SPSite site = DetectContextSite()) { using (SPWeb web = site.OpenWeb()) { using (var dc = new ...
0
votes
0answers
298 views

Caml Joins for multiple lists

I have four lists as explained below EmpMaster ( Empcode, EmpName, BranchCode ) BranchMaster ( BranchCode, BranchName, BranchHead, ZoneCode) ZoneMaster ( ZoneCode, ZoneName, ZonalHead) ...
0
votes
0answers
66 views

edit which data is rendered with google Chart through EditorPart

I am using the GoogleChart API to render some charts . To do this, I am executing a LINQ Query which looks similar to this: var dataList = from products in entities.Productlist select ...
0
votes
0answers
102 views

Create External Content Type with Linq query

I have the following issue. I created BDC Model in VS 2010 to which i added Linq to SQL model(that has two tables in it). No I'm wondering can i create entity (class) that is represented in sharepoint ...
0
votes
0answers
204 views

Linq Data Context - connect from web part as application pool identity

I have an assembly with linq to sql mappings and I'd like to utilize it in my webpart. But when I try following: DataList dataList = new DataList(); dataList.DataSource = DB.Foo; ...