select * from rop l left join system s
on substr(l.remark,1,16)=s.log_id or substr(l.remark,17,16)=s.log_id
这条sql语句用linq怎么写呢,linq的equals后面不能接or查询了啊
参考 LEFT JOIN with OR condition in LINQ :
var query = from t1 in T1 from t2 in T2.Where(tt2 => (t1.ID == tt2.ID1) || (t1.ID = tt2.ID2)) .DefaultIfEmpty() select new { t1.ID, t2.Name }