razor_222
razor_222
CC#
Created by razor_222 on 5/13/2023 in #help
❔ Need help with EF 6 Migrations
Hello all, I have recently inherited a project that has entity framework Core 6 Code first approach. The initial migration had an up method that created a trigger by executing it as sql. Meaning, there is a variable that contains sql syntax and EF is just executing it in the backend. Now i need to update that sql script. How do i go about updating it and creating a new migration? should i just create a migration (which will be empty) and write the modified trigger into a variable and execute it? or is there a more streamlined way of doing this? Thanks!
10 replies