Skip to content
Loading
how to get the details from select query like where in
  • Hi,Pleace change where condition,
     
    Where areaId.Any(location.AreaId)
  • Laxmidhar Sahoo
    Almost you are currect ,may a minor mistake
  • Salman Beg
    Can you try these links,
    https://pastebin.com/f30868a36
     
    https://stackoverflow.com/questions/194930/how-do-i-use-linq-containsstring-instead-of-containsstring
     
    Thanks. 
  • sir
     
    string[] areaId has values like [1,2,3,4,5,6] 
     
    so i tried like what you said there conversion error facing 
  • sir is there any alternate to contains in LINQ
  • Salman Beg
    Hi.
    Can you change this line,
    where location.AreaId.Contains(areaId) 
    Thanks.