语法 (如标签所示在C#中) 为:
Restrictions.Or(restriction1, restriction1)
Restrictions.Disjunction().Add(restriction1).Add(restriction2).Add(...
在这种情况下,可能是这样的 (再次在C#中,问题似乎使用了VB) :
db.QueryOver<Users>()() .Where((x) => x.Role == "Guest") .And(Restrictions.Or( Restrictions.Where<Users>((x) => x.Block == 0) , Restrictions.Where<Users>((x) => x.APPID == appId) )) .List<Users>();



