【发布时间】:2009-09-22 01:26:37
【问题描述】:
我不明白为什么 resultSet2 是空的!只有第一个断言通过!
List<Tree> resultSet1 = this.datacontext.Trees.Where(t=>t.RiskRating.Contains("bad")).ToList();
Assert.IsTrue(resultSet1.count() == 3);
List<Tree> resultSet2 = this.datacontext.Trees.ToList().Where(t=>t.RiskRating.Contains("bad")).ToList();
Assert.IsTrue(resultSet2.count() == 3);
谢谢!
阿什利
【问题讨论】:
标签: linq entity-framework