示例#1
0
        // public CursoCensoContext CursoCensoContext { get; set; }

        public CursoEmecController(CensoContext _context, ProfessorIESContext _profcontext, IConfiguration _configuration, IOtimizacao _otm, CursoEnquadramentoContext _cursoEnquadContext, TempProducaoContext _producaoContext)
        {
            this.Context                   = _context;
            this.ProfContext               = _profcontext;
            this.Configuration             = _configuration;
            this.CursoEnquadramentoContext = _cursoEnquadContext;
            this.Otm             = _otm;
            this.ProducaoContext = _producaoContext;
            this.Context.ChangeTracker.QueryTrackingBehavior     = QueryTrackingBehavior.NoTracking;
            this.ProfContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
            this.CursoEnquadramentoContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }
示例#2
0
        public ProfessorForaSedeController(ProfessorIESContext _professorContext, CampusContext _campusContext, RegimeContext _regimeContext, IConfiguration _configuration)
        {
            if (dicProfessorCampus == null)
            {
                dicProfessorCampus = CampusProfessor.getCampusProfessor(_configuration);
            }

            this.Configuration = _configuration;
            this.CampusContext = _campusContext;

            this.ProfessorIESContext = _professorContext;

            this.RegimeContext = _regimeContext;
        }
示例#3
0
        public RegulatorioController(ProfessorIESContext Context
                                     , ProfessorContext ProfContext
                                     , RegimeContext regimeContext
                                     , CensoContext CContext
                                     , CargaContext cargaContext
                                     , CampusContext _campusContext
                                     , ProfessorMatriculaContext _matContext
                                     , IConfiguration _configuration)
        {
            if (dicProfessorCampus == null)
            {
                dicProfessorCampus = CampusProfessor.getCampusProfessor(_configuration);
            }

            this.Context          = Context;
            this.Profcontext      = ProfContext;
            this.RegContext       = regimeContext;
            this.CContext         = CContext;
            this.CgContext        = cargaContext;
            this.CampusContext    = _campusContext;
            this.MatriculaContext = _matContext;

            this.listaForaSede = new List <string>()
            {
                "4"
                , "5"
                , "7"
                , "8"
                , "33"
                , "42"
                , "43"
                , "44"
                , "49"
                , "51"
                , "52"
                , "61"
                , "67"
                , "297"
                , "301"
                , "564"
                , "720"
                , "721"
                , "1002"
            };
        }
 public ProfessorIESController(ProfessorIESContext Context, RegimeContext RegContext)
 {
     this.context    = Context;
     this.regContext = RegContext;
 }
示例#5
0
        public static DbSet <ProfessorIes> getProfessoresIES(ProfessorIESContext _context)
        {
            var results = _context.ProfessorIES;

            return(results);
        }