What is the difference between first () and firstordefault () select methods in linq?
Answer / Seema Rani
"first()" returns an exception if no elements are found, while "firstordefault()" returns a default value of the element type when no elements are found.
| Is This Answer Correct ? | 0 Yes | 0 No |
Differentiate between linq and stored procedure?
Is not supported in linq to entities?
What is linq placement?
What is “oftype"? In linq?
What are the important points to remember while using lambda expressions?
What do you understand by datacontext class?
What is Extension method?
What are the three main components of linq or language integrated query?
Why cant datareader be returned from a web services method?
Differentiate between select() and selectmany() method in linq.
How to return iqueryable from linq query?
What is difference between XElement.Load() and XDocument.Load()?
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)