-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple calls to FromSql with stored procedure results in errors #2420
Comments
Appears to be fixed by other changes in Query, added tests to catch any regressions in this area. |
I don't now if anybody will see this, but I'm seeing this error and I'm not exactly sure why this is happening. I'm sending in a few User Defined Table Types (with the help of NReco.Data) and as far as I can tell that is working, but when the data is returned I see this error: "Exception thrown: 'System.InvalidOperationException' in Microsoft.EntityFrameworkCore.dll Additional information: The required column 'InventoryCapacityGroupSecondaryId' was not present in the results of a 'FromSql' operation." That column is the first column in my resulting SELECT statement at the end of the stored procedure. That is also the first property in my data entity class. I wasn't sure how to contact anybody or post something new? Maybe the UDTT are affecting the results. |
@SpilledMilkCOM this issue is closed, please open a new issue with details of the problem you are encountering. |
Its saying the said primary key is not present in the list of select column, if you could add it for the sake of it...I had a weird situation, the count by group, so I could not add Pkey, stuck at that.:( |
Composing on a FromSql call to a stored procedure with another FromSql call results in errors. Calls to
Include
have already been disabled by throwing inRelationalEntityQueryableExpressionVisitor
and it is probably appropriate to throw for additional FromSql query annotations in the same place.Multiple stored produce calls produce the following:
Stored procedure followed by a select produces the following:
Select followed by a stored procedure produces the following:
The text was updated successfully, but these errors were encountered: