Is there a way to construct database query, where I can apply condition based on values in a list?

后端 未结 0 1769
有刺的猬
有刺的猬 2021-01-12 18:57
var contacts = await dbContext.Registration.Where(x => visited.Any(y => y.Id == x.Id)
                && visited.Any(y => (x.OutDate >= y.InDate          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题