I have dynamic linq WHERE statement:
dataContext.Table.Where("id = 0 Or id = 1 Or id = 2 Or ...");
I want change to:
dataContext.Table.Where("id IN (0, 1, 2, ...)");
But it doesn′t work. How can I do this for better performance?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…