日期:2014-05-20 浏览次数:20643 次
var result = from s in stock join r in report on s["ProductId"] equals r["ProductId"] into sr join p in product on s["ProductId"].ToString().ToLower() equals p["ProductId"].ToString().ToLower() into rp
var result = from s in stock join r in report on s["ProductId"] equals r["ProductId"] into sr from srs in sr.DefaultIfEmpty() join p in product on s["ProductId"].ToString().ToLower() equals p["ProductId"].ToString().ToLower() into rp from rps in rp.DefaultIfEmpty() join w in w_table on srs.warehouseid equals w.ID into wr from wrs in wr.DefaultIfEmpty()