亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

看不懂.....

看不懂.....

白豬掌柜的 2018-12-06 15:22:31
?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 回答

?
繁花不似錦

TA貢獻1851條經驗 獲得超4個贊

你這個應該是方法的類有多個Select的重載方法,多貼些代碼看看。

查看完整回答
反對 回復 2019-01-21
?
翻過高山走不出你

TA貢獻1875條經驗 獲得超3個贊

Select應該是有重載方法吧,

Select(SqlDataReader dr);

Select(Users obj,?bool bParentTable,bool bChildrenTable)

?

查看完整回答
反對 回復 2019-01-21
  • 3 回答
  • 0 關注
  • 444 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號