i am using Devforce 2012, i have a need to return a multi-result set from a stored procedure to bind to a report (related entities or DataSet). Can this be done in DF 2012?
I have added the stored procedure to the EDM but the result contains only the first table.
Thankyou in advance.
You can't do this directly with the
StoredProcQuery, but you can via an invoked server method. It's a little tortuous, the server method needs to use the native connection to execute a reader and process the results, and then return a DevForceEntityCacheState. You then load theEntityCacheStateinto yourEntityManager. It would look something like this:-- on the client --
On the server, it's a bit tricky to get the connection - you can easily create an EF
ObjectContextfrom the connection string, and then from that you create aDbContext, and then open and use the connection. For example:-- on the server