workflow-core icon indicating copy to clipboard operation
workflow-core copied to clipboard

WorkflowDbContext missing constructor with options

Open joshdanko opened this issue 8 years ago • 1 comments

I'm unable to use AddDbContext or implement IDesignTimeDbContextFactory to pass DbContextOptions for my Migrations, because WorkflowDbContext is missing a constructor to pass those options.

I am getting it to work by overriding OnConfiguring method and putting my logic to get the connection string , UseSqlServer and other misc options.

Using IWorkflowDbContextFactory I run into the same issues of having to create multiple OnConfiguring functions. Is there a better way to do it that I am missing?

joshdanko avatar Oct 08 '18 18:10 joshdanko

Are you able to attach a sample project that illustrates this problem?

danielgerlag avatar Oct 09 '18 15:10 danielgerlag