Пример #1
0
        public DbProvider()
        {
            var builder = new DbContextOptionsBuilder <AcademateDbContext>();

            builder.UseInMemoryDatabase("AcademateDb");
            builder.EnableSensitiveDataLogging();

            var options = builder.Options;

            Context = new AcademateDbContext(options);
        }
Пример #2
0
 public ExamRepository(IDbProvider dbProvider)
 {
     _dbContext = dbProvider.Context;
 }
 public AuthenticationService(IOptions <AppSettings> appSettings, IDbProvider dbProvider)
 {
     _dbContext   = dbProvider.Context;
     _appSettings = appSettings.Value;
 }
 public ConfigurationRepository(IDbProvider dbProvider)
 {
     _dbContext = dbProvider.Context;
 }
Пример #5
0
 public CourseRepository(IDbProvider dbProvider)
 {
     _dbContext = dbProvider.Context;
 }
Пример #6
0
 public EnrollmentRepository(IDbProvider dbProvider)
 {
     _dbContext = dbProvider.Context;
 }