Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages.

learn more… | top users | synonyms

1
vote
1answer
28 views

Transfor List to Nested Dictionary using linq C#

I have a list that contains data like this ID | START_DATE | END_DATE | Chapter | ID_OWNER 1 01/03/2013 05:15:14 01/03/2013 06:20:14 1 ...
0
votes
3answers
29 views

SQL expressions in EF using Lambda

I would like to know if something similar to this (linq to SQL) customers.Where(c => SqlMethods.Like(c.Name, "%john%")); is possible to do in Entity Framework. Preferably using lamba ...
-4
votes
2answers
40 views

which are the diffenent types of Exception occucerd in performing LINQ Operation?

I want some help related Exception.I don't know ,which are the different types of exception occurred when we perform LINQ operation.For example ,Following code we will take - public ...
1
vote
3answers
20 views

unable to access the linq to sql result in mvc4

I am getting result from theee tables usign linq to sql but i am unable to use the values in the view, how i can do that as i am new to mvc here is my controller code: public ActionResult Grid() { ...
2
votes
3answers
51 views

LINQ Query C# ASP

In English I'm trying to: "Return a list of People who don't have the TeamID in their List of Teams I have a many-to-many relationship between a Person table and a Team table so each instance of a ...
1
vote
3answers
53 views

Build a dynamic where clause over multiple properties

What I have is a List<string> IndexFields which contains a list of property names. My issue is that I need to build a where clause based on the elements in the list. So far I have; var sitem ...
0
votes
1answer
15 views

LINQ - loading data from tables with circular references

I have the below tables where the StationAvailableMoves.StationID and StationAvailableMoves.AvailableNextStationID both have relationships on the Station.ID column. I am using this to control a ...
2
votes
3answers
70 views

How to insert the LINQ result to a string[] array

I have a one dimensional string[] array as follows string[] header = new string[30]; public class GetList { public string ServerID; public string Name; public ...
1
vote
2answers
34 views

How to combine LINQ querys with different where conditions

I have three LINQ querys I'd like to combine. Each query has a different where condition but the group by and select clauses always follow the same pattern. Any help is greatly appreciated! Query 1: ...
1
vote
3answers
89 views

dynamic linq where expression

I have an Linq appliacation and I need to get a dynamic where expression. I use class: public class EntityColumnsField { public String ColumnName { get; set; } public Type ColumnType { get; ...
2
votes
0answers
37 views

Downgrade Entity Framework 5 to 4

In association with: Outer Apply in EF5 If you can, then please edit this linq query as to not use OUTER APPLY. The developer stations have .Net 4.0, the client computers .Net 4.5. Entity Framework ...
1
vote
3answers
40 views

Linq: determine if the number of items in a sequence meets a condition

What I'm trying to do, exactly, is determine if there is only a single element in an IEnumerable and then act on that. I could do a .Count() and a comparison against the result, but that is extremely ...
-2
votes
1answer
40 views

Query XML Document

I have an XML doc in this format <User 1> <sub>text1</sub> <sub>text2</sub> </User 1> <User 2> <sub>text3</sub> <sub>text4</sub> ...
5
votes
2answers
59 views

Check Contains into an int array for null property

I have in int[] and want to check that particular property from list exist into an array or not. Here is my class of property, public class WaitingLists { [Key] public Int32 Id { ...
-2
votes
1answer
43 views

How to get a GenericList sorted by a property

I need to sort a list based on a property (IsValid = true) with all true items on top and the rest below it.Since I'm using compact framework, I can't use OrderBy. Can anyone post me LINQ query to get ...

1 2 3 4 5 2005
15 30 50 per page