Hi Is there an elegant way to combine like and or when I use the Query Query API? for 'like' there is something like:
query.WhereRestrictionOn(x=>x.Code).IsLike(codePart)
for 'or' I can do something like:
query.Where( x=>x.Code == codePart || x.Description== codePart)
but how can I create a query like this:
select * from n where the code is '% abc%' or a description of type '% abc%'
nhibernate queryover
buddy Dec 27 '10 at 20:20 2010-12-27 20:20
source share