I am using Nhibernate. I am writing query through queryover method. I am able to write and clause as in code below. Its working fine.
db.QueryOver(Of Users)()
.Where(Function(x) x.Role = "Guest")
.And(Function(x) x.Block = 0)
.And(Function(x) x.APPID = appId)
.List();
But I want to use Or
clause instead of And
, or combination of both. How can I implement this. Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…