本帖最后由 u011055410 于 2014-04-09 20:45:44 编辑

解决方案 »

  1.   

    没看懂lz需求,这个应该是前端直接转list对象了吧。 
      

  2.   

    你如果要保持C里的List<B>和B里的List<A>的关系,应该没办法用一次store proc调用,只能多次调思路就是:
    SqlCommand cmd = new SqlCommand("spGetClassByID", Conn);
    while reader read()
    {
          // fill class C here
          SqlCommand cmd = new SqlCommand("spGetClassBByClassCID", Conn);
          while reader.read())
          {
                 SqlCommand cmd = new SqlCommand("spGetClassAByClassCID", Conn);
                 Your_B_Object.add(Your_A_Object)
          }
          ClassC.c4.add(Your_B_Object)
    }
      

  3.   

    通过一个 json或xml或ini内容的大字符串(varchar(max))返回