0

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)?

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
Florian
  • 11
  • 2
  • 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

0 Answers0