看不懂.....

 public IList<users> Select(string where, bool bParentTable, bool bChildrenTable)
        {
            IList<users> list = new List<users>();
            SqlParameter[] param ={
   new SqlParameter("@where",SqlDbType.VarChar,8000)
   };
            param[0].Value = where;
            string sqlCommand = "usersSelectByParams";
            using (SqlDataReader dr = SqlHelper.ExecuteReader(Conn.SqlConn,CommandType.StoredProcedure, sqlCommand, param))
            {
                while (dr.Read())
                {
                    list.Add(this.Select(dr));
                }
            }
            foreach (users obj in list)
            {
                this.Select(obj, bParentTable, bChildrenTable);
            }
            return list;
        }

 public IList<users> Select(string where)
        {
            return this.Select(where, false, false);
        }

中的 list.Add(this.Select(dr)); 什么意思 ??

还有这个  

      foreach (users obj in list)
            {
                this.Select(obj, bParentTable, bChildrenTable);
            }
            return list;

白猪掌柜的
浏览 423回答 3
3回答

繁花不似锦

你这个应该是方法的类有多个Select的重载方法,多贴些代码看看。

翻过高山走不出你

Select应该是有重载方法吧, Select(SqlDataReader dr); Select(Users obj, bool bParentTable,bool bChildrenTable)  
打开App,查看更多内容
随时随地看视频慕课网APP