コード例 #1
0
        public TestBase()
        {
            _connection = new SqliteConnection("Filename=:memory:");
            _connection.Open();

            _db = new GatheringDbContext(
                new DbContextOptionsBuilder <GatheringDbContext>()
                .UseSqlite(_connection)
                .Options);
            _db.Database.EnsureCreated();
        }
コード例 #2
0
 public DbEventRepo(GatheringDbContext context)
 {
     _context = context;
 }
コード例 #3
0
 public DbUserRepo(UserManager <User> userManager, JWTToken tokenService, GatheringDbContext context)
 {
     this.userManager  = userManager;
     this.tokenService = tokenService;
     _context          = context;
 }
コード例 #4
0
 public DbGroupRepo(GatheringDbContext context, IConfiguration configuration, IGroupUser groupUserRepo)
 {
     _context      = context;
     Configuration = configuration;
     guRepo        = groupUserRepo;
 }
コード例 #5
0
 public DbGroupUserRepo(GatheringDbContext context)
 {
     _context = context;
 }