-
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
How to call a stored procedure #6283
Comments
@188 You probably want to use Please be more specific with your question if this information does not answer it. |
@188 if you want to map to a DbSet from a stored procedure use the fromSql function Example:
|
Thanks |
Hi @Vasimovic,@188 In this example : If in the stored procedure there is no ID column, EFCore displays the error message:
As you can fix this ?, because it can be procedures that do not need to return an ID column. Jose Poma |
It's currently not supported for FromSql to returned a not mapped CLR entity :( |
As @gdoron said currently not supported, I believe support will be added in 1.1.0 release (Edited: changed 1.0.1 to 1.1.0 as per @divega ) If possible you could try adding [Key] to one of the columns and use the AsNoTracking() for now
|
@Vasimovic FWIW the feature at #1862 is planned for 1.1.0, not 1.0.1. The latter is a patch release containing a few high priority bug fixes. |
@divega Since the versions thing was discussed.
Thanks Diego! |
@gdoron we were initially planning to do 1.0.1 in August but for a variety of reasons we had to delay it - currently planned for September. You can already get the pre-release patched bits here: https://dotnet.myget.org/gallery/aspnetcore-patch . For 1.1.0 there will definitely be previews before 1.1.0 RTM. We're working on finalizing the dates, but expect something in ~1 - 1.5 months. |
How to call a stored procedure in EF core 1.0
The text was updated successfully, but these errors were encountered: