public JobServiceSagaDbContext CreateDbContext(string[] args) { DbContextOptionsBuilder <JobServiceSagaDbContext> optionsBuilder = new SqlServerTestDbParameters() .GetDbContextOptions <JobServiceSagaDbContext>(); return(new JobServiceSagaDbContext(optionsBuilder.Options)); }
public ReadOnlySagaDbContext CreateDbContext(string[] args) { var optionsBuilder = new SqlServerTestDbParameters() .GetDbContextOptions(typeof(ReadOnlySagaDbContext)); return new ReadOnlySagaDbContext(optionsBuilder.Options); }
public JobServiceSagaDbContext CreateDbContext(string[] args) { var optionsBuilder = new SqlServerTestDbParameters() .GetDbContextOptions(typeof(JobServiceSagaDbContext)); return(new JobServiceSagaDbContext(optionsBuilder.Options)); }
public AuditDbContext CreateDbContext(string[] args) { // used only for database update and migrations. Since IDesignTimeDbContextFactory is icky, // we only support command line tools for SQL Server, so use SQL Server if you need to do // migrations. var optionsBuilder = new SqlServerTestDbParameters().GetDbContextOptions <AuditDbContext>(); return(CreateDbContext(optionsBuilder)); }
public SagaWithDependencyContext CreateDbContext(string[] args) { // used only for database update and migrations. Since IDesignTimeDbContextFactory is icky, // we only support command line tools for SQL Server, so use SQL Server if you need to do // migrations. var optionsBuilder = new SqlServerTestDbParameters().GetDbContextOptions(typeof(SagaWithDependencyContext)); return(new SagaWithDependencyContext(optionsBuilder.Options)); }