Hi
Is there any elegant way of combining 'like' and 'or' when i'm using queryover 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 code like
'%abc%' or description like '%abc%'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…