Ejemplo n.º 1
0
        public static DbSet <Professor> getProfessores(ProfessorContext _context)
        {
            var results = _context.Professores;

            return(results);
        }
Ejemplo n.º 2
0
 public ProfessorApplyService(ProfessorContext professorContext)
 {
     _context = professorContext;
 }
Ejemplo n.º 3
0
 public ExportacaoController(ProfessorContext _context, ExportacaoContext _expContext, ProfessorContext _profContext, RegimeContext _regContext)
 {
     this.Context    = _context;
     this.ExpContext = _expContext;
     this.ExpContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;;
     this.Profcontext = _profContext;
     this.RegContext  = _regContext;
 }
 public ProfessorRepository(ProfessorContext professorContext)
 {
     _context = professorContext;
 }
Ejemplo n.º 5
0
 public ProfessorModel(ProfessorContext context, ILogger <ProfessorModel> logger)
 {
     _context = context;
     _logger  = logger;
 }
Ejemplo n.º 6
0
 public AddCourseModel(ProfessorContext context, ILogger <AddCourseModel> logger)
 {
     // Bring in Database context and logger using dependency injection
     _context = context;
     _logger  = logger;
 }
Ejemplo n.º 7
0
 public ValuesController(ProfessorContext context)
 {
     this.Context = context;
 }
Ejemplo n.º 8
0
 public ExportacaoController(ProfessorContext _context, ExportacaoContext _expContext, ProfessorContext _profContext
                             , RegimeContext _regContext, CensoContext _ccontext
                             , TempProducaoContext _producaoContext
                             , IConfiguration _configuration)
 {
     this.Context    = _context;
     this.ExpContext = _expContext;
     this.ExpContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;;
     this.Profcontext     = _profContext;
     this.RegContext      = _regContext;
     this.CContext        = _ccontext;
     this.ProducaoContext = _producaoContext;
     this.Configuration   = _configuration;
 }