Hi
I have value in textbox 7. What should be the linq query
From TO
2 4
5 7
8 10
Record 2 should be returned
C#
var Result = (from t in context.Groups
where t.FromAge >= Age && t.ToAge <= Age
select t.ID).FirstOrDefault();Thanks

Muhammad Imran AnsariRank #326 · 7.6K reputationPosted May 30, 2022, 12:42 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted May 30, 2022, 11:56 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted May 31, 2022, 1:25 AM EDT