日期:2014-05-16  浏览次数:20854 次

请帮忙解答每行代码的含义
string Sql = "SELECT * FROM SalesRecord,Customer WHERE 1=1";
  foreach (DictionaryEntry de in SearchTerm)
  {
  BSOS.BLL.CustomerManager.SearchInfo si = (BSOS.BLL.CustomerManager.SearchInfo)de.Value;
  if (si.Fix == false)
  {
  Sql = string.Format("{0} AND {1} {2} {3}", Sql, si.Key, si.Type, si.SqlString);
   
  }
  }
  Sql = string.Format("{0} AND Customer.ID = CustomerID ORDER BY CreateTime DESC", Sql);
 

------解决方案--------------------
建议你先自己试着解释一下这个代码,否则别人也根本不知道你目前已经懂了什么,到什么层次,到底是哪儿不懂。

写出你自己的理解,然后让别人来看你的理解是否正确。 否则别人解释过简单你还是理解不了,解释得过细,可能又是根本不必要。
------解决方案--------------------
xiefei233 (xiefei233)
'截至2010-04-18 22:23:02 用户结帖率0.00%

当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html