linq语句转SQL语句
var ret = from x in ls
where (
string.IsNullOrEmpty(arg.QueryText) ? true :
(
(x.a?? "").ToUpper().Contains(arg.QueryText.ToUpper())
|| (x.b?? "").ToUpper().Contains(arg.QueryText.ToUpper())
|| (x.c?? "").ToUpper().Contains(arg.QueryText.ToUpper())
)
看到这个语句大致能明白其含义,但在转SQL时无从下手,期望答案
------解决方案--------------------
解决就好