コード例 #1
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;
 }
コード例 #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 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;
        }
コード例 #4
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;
 }
コード例 #5
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;
 }
コード例 #6
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"
            };
        }
コード例 #7
0
 public ProfessorIESController(ProfessorIESContext Context, RegimeContext RegContext)
 {
     this.context    = Context;
     this.regContext = RegContext;
 }