日期:2014-05-20 浏览次数:20840 次
//毛主席说,没有结帖习惯的程序员不是好厨师
var query=from t in m_code_type
          let temp=m_code.Where(c=>c.code_name.Contains("") && c.type_code ==t.type_code)
                         .Select(c=>c.type_code).Distinct()
          where t.type_code.Contains("") && t.type_name.Contains("")
          && temp.Any()
          select t;