?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;
- 3 回答
- 0 關注
- 444 瀏覽
添加回答
舉報
0/150
提交
取消