Linq 的Where in语句

var statusesToFind = new List<int> {1, 2, 3, 4};

var foos = from foo in myEntities.Foos
      where statusesToFind.Contains(foo.Status)
      select foo;

阅读更多
换一批

没有更多推荐了,返回首页