-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Investigate function mapping issue #1382
Comments
@andrey-bulat I do not see a failing stored procedure in your sample reproduction !? |
I think TVP parameters with function mapping is not possible |
@ErikEJ I updated https://github.com/andrey-bulat/EfCore6Test to show that in EF Core 3.1 TVP in SP work and doesn't work in 6. Do you know is it supposed to fix it in version 7? |
How is it failing with EF Core 6. There should be no difference.. |
Yes, you are right - when I exclude UDF - it works, error in ValidateDbFunctions - here there is no mapping for TVP, I think that it just because of Udf parameters doesn't know how to map UDT: In SP generated code contains: In UDF there is no definition for TypeName |
@ErikEJ do you know what could be workaround to define DataTable parameter mapping? some interceptors or wrappers? |
What error do you get with the stored procedure?? Full stacktrace pls |
Finding out is what this issue is about |
when I exclude UDF, stored procedure works as expected, error is in ValidateDbFunctions |
OK, so there is no issue with stored procedures in EF Core 6, but the model is invalid due the use of a TVP in the Function mapping. Is that correctly understood? |
@ajcvickers Assume that using a TVP as parameter is simply not possible with an inline UDF ? |
dotnet/efcore#27955
The text was updated successfully, but these errors were encountered: