I want to use LINQ with my C# Windows Application with access of sql database.
plz send me simple starting me on LINQ for C# windows application
LINQ
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 26, 2010, 3:59 AM EDT
Below is the LINQ query to fetch the name and unit price from a IEnumerable types. There is a lot of LINQ examples in MSDN. Make use of it.
var namesAndPrices =
products.
Where(p => p.UnitPrice >= 10).
Select(p => new { p.Name, p.UnitPrice }).
ToList();
Mark this post as accepted answer, if this post really helps.