提交 b2e06e4a 编写于 作者: A Ayende Rahien

Adding passing test

SVN: branches/2.1.x@4966
上级 7b1502ef
......@@ -31,5 +31,31 @@ Invoice inv
.List();
}
}
[Test]
public void QueryPropertyInBothFilterAndQuery_WithWith()
{
using (ISession s = OpenSession())
{
s.EnableFilter("validity")
.SetParameter("date", DateTime.Now);
s.CreateQuery(@"
select
inv.ID
from
Invoice inv
join inv.Category cat with cat.ValidUntil > :now
left join cat.ParentCategory parentCat with parentCat.ID != :myInt
where
inv.ID = :invId
and inv.Issued < :now
")
.SetDateTime("now", DateTime.Now)
.SetInt32("invId", -999)
.SetInt32("myInt", -888)
.List();
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册