What is the basic syntax of a linq query in visual basic as well as in c#?
Answer / Ilesh Kumar
The basic syntax for a LINQ query is: From element In collection Select result. In Visual Basic, it's written as: From element In collection Let alias = expression Select alias. In C#, it's written as: var query = from element in collection select expression;
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between Skip() and SkipWhile() extension method?
How can you find average of student marks from student tables (columns are studentid, marks)?
Is linq faster than foreach?
What is the difference between the Select clause and SelectMany() method in LINQ?
How to assign a computed value to the same array back?
Is linq part of entity framework?
What are the three main components of linq or language integrated query?
How to convert linq query to list?
When to use Single, SingleOrDefault, First and FirstOrDefault?
Why do we use “contains"? Method for strings type functions?
Does entity framework use linq?
Describe the architecture of 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)