public void Test() { var dbOptions = serviceProvider.GetService <DbContextOptions <ApplicationServerDbContext> >(); using (var db = new ApplicationServerDbContext(dbOptions)) { try { } catch (Exception ex) { } // when we exit the using block, // the IServiceScope will dispose itself // and dispose all of the services that it resolved. } }
public ProcessInstanceContainerRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public ProcessDiagnosticDataRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public LogElementRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public LogPropertiesRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public ProcessExternalDataRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public Repository(ApplicationServerDbContext applicationDbContext) { _applicationDbContext = applicationDbContext; entities = _applicationDbContext.Set <T>(); }
public ProcessActivityDataRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public ProcessStepHistoryRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }
public ProcessStateDataRepository(ApplicationServerDbContext applicationDbContext) : base(applicationDbContext) { }