How can you retrieve the first three orders placed by a specific customer using LINQ…
can any one give linq query to top 3 orders
How can you retrieve the first three orders placed by a specific customer using LINQ…
can any one give linq query to top 3 orders
customerOrders.Where(o => o.CustomerId == customerId).Take(3).ToList()
hope its helps you
Datatablevaraible.AsEnumerable.take(3).CopyToDataTable
Try this
This will give first 3 rows data
If you want any other let me know
Could you also provide us with an example case for this scenario :
Where using the above expression has worked out
Have tested the above query ? Which you have marked as a solution
It will not work please recheck it once
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.