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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manikavelu VelayuthamPosted Aug 26, 2010, 7:59 AM
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.