Click here to Skip to main content
15,891,431 members
Articles / Web Development / HTML

SingleOrDefault and FirstOrDefault Methods in LINQ to SQL

Rate me:
Please Sign up or sign in to vote.
4.92/5 (22 votes)
14 Jul 2014CPOL4 min read 96.1K   16  
This article explains the differences between the SingleOrDefault and FirstOrDefault Methods in LINQ to SQL.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
He is awarded for Microsoft TechNet Guru, CodeProject MVP and C# Corner MVP. http://l-knowtech.com/

Comments and Discussions