public EFUnitOfWork(string connectionString) { var options = new DbContextOptionsBuilder <CourcesContext>() .UseSqlServer(connectionString) .Options; context = new CourcesContext(options); SeedDb(); }
public EfGroupsRepository(CourcesContext courcesContext) { this.courcesContext = courcesContext; groups = courcesContext.Groups; }
public EfStudentRepository(CourcesContext context) { this.context = context; students = this.context.Students; }