-
-
Notifications
You must be signed in to change notification settings - Fork 39
How do we used it with stored proc that has multiple result sets? #11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I need the answer for this as well. I see the ExecuteStoredProcedure(proc) but how do I grab the result? my result does have multiple result sets as well. |
Unfortunately Entity Framework Extras doesn't support multiple record sets. It only returns the first collection. |
One option could be to wrap the DbDataReader, something like
|
…d on xavierjohn's suggestion
I was able to use xavierjohn's suggestion successfully in a fork. In case the next person to find this on Google is as clueless as I was ObjectContext.Translate is used to translate the DbDataReader results into Entity objects. This is the snippet from my code:
|
…d on xavierjohn's suggestion
https://github.com/Fodsuk/EntityFrameworkExtras I don't want to fork it. I'd rather use the nuget package. However Viking needs to collect multiple result sets from stored procedure calls. I pushed a fix to the repository in 2016 and haven't seen it picked up. Once multiple result sets are accepted stop using this fork. Check here for updates: zzzprojects/EntityFrameworkExtras#11
How do we used it with stored proc that has multiple result sets?
As mentioned in https://msdn.microsoft.com/en-us/data/jj691402.aspx
Thanks.
The text was updated successfully, but these errors were encountered: