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;
繁花不似锦
翻过高山走不出你