Open elachlan opened 1 day ago
Please provide a full repro and I will have a look, including code to call the sproc.
Thank you for the quick response. I have updated the description with an example SP and the generated csharp code.
I have several SPs that output values that may or may not be used. in the cases I don't want to use it, I would expect to pass null.
Could you show an example of usage of the generated code please
When a stored procedure is reverse engineered and used a call is made to it, providing null for the
OutputParameter
value, it will cause an exception.It would be nice if instead of having to pass in a value, I could pass null.
Similar to returnValue, it would be good to check for null:
Provide steps to reproduce a bug
Reverse engineer an SP with an output parameter. Call it and specify null for the
OutputParameter<T>
parameter.Provide technical details
EF Core Power Tools version: 2.6.577
Exact Visual Studio version: Visual Studio 2022 17.11.5
Database engine: SQL Server
EF Core version in use: (e.g. EF Core 7)
Is Handlebars templates used: no
Is T4 templates used: no
Is a SQL Server .dacpac used: no
Example Procedure:
Generated Code: