var intList = new List<int>() { 1, 2, 3, 4, 4, 5, 6, 7, 8 }; int startID = 4; int endID = 7; //LINQ way var find = (from item in intList where item > startID && item < endID select item).ToList(); //LAMBDA way var find = intList.FindAll(f => f > startID && f < endID);
-- Thanks & Regards, RNA Team
var result = from db.Projects.Where(d => d.AutoId >= minValue && d.AutoId <= maxValue)
Regards, Sheo Narayan http://www.dotnetfunda.com
Feel free to share informations. mail Id ' adityagupta200@gmail.com Thanks
var result = dbContext.tabelName.Where(d => d.id>= minValue && d.id<= maxValue).ToList()
Munesh
Login to post response