public JobServiceSagaDbContext CreateDbContext(string[] args)
        {
            DbContextOptionsBuilder <JobServiceSagaDbContext> optionsBuilder = new SqlServerTestDbParameters()
                                                                               .GetDbContextOptions <JobServiceSagaDbContext>();

            return(new JobServiceSagaDbContext(optionsBuilder.Options));
        }
Esempio n. 2
0
            public ReadOnlySagaDbContext CreateDbContext(string[] args)
            {
                var optionsBuilder = new SqlServerTestDbParameters()
                    .GetDbContextOptions(typeof(ReadOnlySagaDbContext));

                return new ReadOnlySagaDbContext(optionsBuilder.Options);
            }
Esempio n. 3
0
        public JobServiceSagaDbContext CreateDbContext(string[] args)
        {
            var optionsBuilder = new SqlServerTestDbParameters()
                                 .GetDbContextOptions(typeof(JobServiceSagaDbContext));

            return(new JobServiceSagaDbContext(optionsBuilder.Options));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        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));
        }