public EnadeController(EnadeContext EContext, CampusContext CampContext, CensoContext CContext, dadosContext DContext, CursoEnquadramentoContext CursoEnqContext) { this.Econtext = EContext; this.CampContext = CampContext; this.CensoContex = CContext; this.DadosContext = DContext; this.CeContext = CursoEnqContext; }
// 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; }