You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enhancement would allow slight customization of the default return type name. We have a large amount of code written with an older version of EF and the return type names were generated slightly differently. To ease the transition to EF Core it would be nice if the type names could be generated to match the ones previously generated to minimize code changes.
Currently, the return type names generated for store procedures and functions are generated by appending the suffix "Result" to the name of the procedure or function name. The return type for the procedure sp_ProcessSomeData would be sp_ProcessSomeDataResult.
The proposal is to add an option, Type Name Suffix, to the Advanced Options dialog windows to specify a customized suffix instead of the default 'Result". If nothing is specified 'Result' would be used as it is in the current version. So, if "_Result" was specified as the Type Name Suffix the return type name for the procedure mentioned above would be sp_ProcessSomeData_Result.
I have already implemented a proof of concept. Would you be open to a pull request?
The text was updated successfully, but these errors were encountered:
I think it is a good suggestion - but I think this could just be something you can manually add to the config file. Remember to also add to the CLI (or I can do that after your PR if you prefer)
This enhancement would allow slight customization of the default return type name. We have a large amount of code written with an older version of EF and the return type names were generated slightly differently. To ease the transition to EF Core it would be nice if the type names could be generated to match the ones previously generated to minimize code changes.
Currently, the return type names generated for store procedures and functions are generated by appending the suffix "Result" to the name of the procedure or function name. The return type for the procedure sp_ProcessSomeData would be sp_ProcessSomeDataResult.
The proposal is to add an option, Type Name Suffix, to the Advanced Options dialog windows to specify a customized suffix instead of the default 'Result". If nothing is specified 'Result' would be used as it is in the current version. So, if "_Result" was specified as the Type Name Suffix the return type name for the procedure mentioned above would be sp_ProcessSomeData_Result.
I have already implemented a proof of concept. Would you be open to a pull request?
The text was updated successfully, but these errors were encountered: