Example #1
0
 public ProfessorController(ProfessorContext Context, RegimeContext RegContext, CensoContext Censocontext,
                            CampusContext campusContext,
                            ProfessorMatriculaContext _matContext)
 {
     this.context          = Context;
     this.regContext       = RegContext;
     this.MatriculaContext = _matContext;
     this.censocontext     = Censocontext;
     this.CampusContext    = campusContext;
     this.context.ChangeTracker.QueryTrackingBehavior          = QueryTrackingBehavior.NoTracking;
     this.regContext.ChangeTracker.QueryTrackingBehavior       = QueryTrackingBehavior.NoTracking;
     this.censocontext.ChangeTracker.QueryTrackingBehavior     = QueryTrackingBehavior.NoTracking;
     this.MatriculaContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
 }
Example #2
0
        public RedisService(IConfiguration config,
                            ProfessorContext Context,
                            RegimeContext RegContext,
                            CensoContext Censocontext,
                            CampusContext campusContext,
                            ProfessorMatriculaContext _matContext)
        {
            // ctor da classe

            _redisHost      = config["Redis:Host"];
            _redisPort      = Convert.ToInt32(config["Redis:Port"]);
            this.regContext = RegContext;
            this.context    = Context;
        }
Example #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"
            };
        }