© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
razor_222

❔ 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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

need help with ef
C#CC# / help
3y ago
✅ EF Core migrations with Docker
C#CC# / help
11mo ago
EF Migrations 101
C#CC# / help
3y ago
❔ EF Core migrations
C#CC# / help
4y ago