public DbContextTests()
        {
            var options = new DbContextOptionsBuilder <ACSystemDbContext>()
                          .UseSqlServer("Data Source=.;Initial Catalog=CHUACSystemDb;Trusted_Connection=True;")
                          .Options;

            _context = new ACSystemDbContext(options);
        }
Beispiel #2
0
 public Repository(ACSystemDbContext context)
 {
     _context  = context;
     _entities = context.Set <T>();
 }