EntityFrameworkCore.Generator icon indicating copy to clipboard operation
EntityFrameworkCore.Generator copied to clipboard

Feature: Stored Procedure

Open VinayShiva opened this issue 5 years ago • 3 comments

This could be an enhancement or a feature,

Scripting from Yml file was awesome. and thank you for giving us a clean way to script back form database. how do we include the stored procedures in the database?

generating code to call the sp's also would be great.

Thank you. V

VinayShiva avatar May 09 '19 10:05 VinayShiva

I'm not sure if there is a clean way to know which stored procedure goes with which entity? If you have a good design, we could see if it could be done.

pwelter34 avatar May 16 '19 18:05 pwelter34

Seems like a great idea to me, Entity Framework 6.3 generates a class for each result of a stored procedure. result model naming: {StoredProcedure}.Name_Result

Generated code to execute those stored procedures would make it awesome. with all params as method parameters. (this could also be encapsulated in a request object)

BartBr avatar Dec 03 '19 08:12 BartBr

This is a great idea, and to be honest I was disappointed it wasn't already here. However the Code Generation from this product is excellent and is why I use it. You can check out https://github.com/ErikEJ/EFCorePowerTools/wiki for possible tips at how to achieve this. I don't know enough about either product to know if it will be helpful.

MichaelDenwood avatar Jul 05 '22 23:07 MichaelDenwood