Skip to content
Discussion options

You must be logged in to vote

Hello @abhjitsantra

I completely understand, and maintaining your own migrations is the recommended approach, because this gives you full control over when and how you update your schemas.

So, you are right to want to opt-out of automatically running migrations. To do so, set the RunMigrations flag to false when configuring a feature with EF Core.

For example:

services.AddElsa(elsa => 
{
   elsa.UseIdentity(identity => identity.UseEntityFrameworkCore(ef => ef.RunMigrations = false));
   elsa.UseManagement(management => management.UseEntityFrameworkCore(ef => ef.RunMigrations = false));
   elsa.UseRuntime(runtime => runtime.UseEntityFrameworkCore(ef => ef.RunMigrations = false));
})

I hope…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jsUnitedLex
Comment options

@sfmskywalker
Comment options

@jsUnitedLex
Comment options

@jsUnitedLex
Comment options

@sfmskywalker
Comment options

Answer selected by abhjitsantra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
elsa 3 This issue is specific to Elsa 3
3 participants