Answers for "select top 5 in linq c#"

2

linq query select top 1 c#

imageName = (from soh in db.tblProductImages
             where soh.product_id == e.ProductId
             select soh.image_name).FirstOrDefault()
Posted by: Guest on June-04-2020
0

select top 5 in linq c#

var list = (from t in ctn.Items
           where t.DeliverySelection == true && t.Delivery.SentForDelivery == null
           orderby t.Delivery.SubmissionDate
           select t).Take(5);
Posted by: Guest on June-10-2021

Browse Popular Code Answers by Language