S
Suba
Hi there
I tried an LINQ example where my Store procedure returns multiple result
sets. I am facing a problem with getting the results out by changing the
designer generated code to reurn IMultipleResults instead of ISingleResult. I
have specified the result types also. I am able to retrieve data. I followed
the steps given in this
http://blog.linqexchange.com/post/2008/06/How-to-Retrieve-Multiple-Recordsets-Using-LINQ-to-SQL.aspx
But facing a problem with the order of retrieval. Suppose am returning 2
record sets from the SP in the order First Country and second State. When i
have to access State its not returning me the values properly. When i
debugged i found out that the order of the method call is important. To get
the state list i have to call Country first and then call State. Other wise
its not filling my State list.
For some reason the order is causing the problem. Have you encountered
anything like this. Any idea why this is happening?
I tried an LINQ example where my Store procedure returns multiple result
sets. I am facing a problem with getting the results out by changing the
designer generated code to reurn IMultipleResults instead of ISingleResult. I
have specified the result types also. I am able to retrieve data. I followed
the steps given in this
http://blog.linqexchange.com/post/2008/06/How-to-Retrieve-Multiple-Recordsets-Using-LINQ-to-SQL.aspx
But facing a problem with the order of retrieval. Suppose am returning 2
record sets from the SP in the order First Country and second State. When i
have to access State its not returning me the values properly. When i
debugged i found out that the order of the method call is important. To get
the state list i have to call Country first and then call State. Other wise
its not filling my State list.
For some reason the order is causing the problem. Have you encountered
anything like this. Any idea why this is happening?