How to return list from linq query?
Answer / Deepa Phakaliyal
To return a list from a LINQ query, you can use the ToList() method. For example: `var result = dataSource.Where(x => x.SomeProperty == someValue).ToList();`
| Is This Answer Correct ? | 0 Yes | 0 No |
How to use GroupBy in LINQ?
Why cant datareader be returned from a web services method?
How to write LINQ query for Inner Join with and condition?
What is the difference between first () and firstordefault () select methods in linq?
How var type is different from anonymous type?
What is the use of System.Data.DLinq.dll?
Explain what is linq? Why is it required?
How to assign a computed value to the same array back?
Is linq faster than sql?
What are lazy/deferred loading and eager loading?
When to use Single, SingleOrDefault, First and FirstOrDefault?
What do you understand by datacontext class? How is it related to linq?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)