We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd97c39 commit dac823bCopy full SHA for dac823b
src/NHibernate.Test/Linq/MiscellaneousTextFixture.cs
@@ -27,7 +27,8 @@ from s in db.Shippers
27
[Test(Description = "This sample uses Count to find the number of Orders placed before yesterday in the database.")]
28
public void CountWithWhereClause()
29
{
30
- var q = from o in db.Orders where o.OrderDate <= DateTime.Today.AddDays(-1) select o;
+ var yesterday = DateTime.Today.AddDays(-1);
31
+ var q = from o in db.Orders where o.OrderDate <= yesterday select o;
32
33
var count = q.Count();
34
0 commit comments