What is the recommended way to insert functions or stored procedures into a database? Use migrationBuilder.Sql() in a migration, run a script on the database after Migrate(), or rather a combination of both (adding scripts as embedded resource and calling in a migration)?
Asked
Active
Viewed 34 times
0
-
Here's an answer for EF 5 https://stackoverflow.com/a/64788052/4694368 Here's an answer for EF 6 https://stackoverflow.com/a/27711523/4694368 – Kevin Hackett Apr 02 '22 at 15:07