예제 #1
0
 public ProfessorTurma BuscarID(int id)
 {
     using (EduxContext _ctx = new EduxContext())
     {
         return(_ctx.ProfessorTurma.FirstOrDefault(x => x.IdProfessorTurma == id));
     }
 }
        /// <summary>
        /// Busca um tipo alunoTurma por ID
        /// </summary>
        /// <param name="id">ID para pesquisa</param>
        /// <returns>alunoTurma pesquisado</returns>

        public AlunoTurma BuscarID(int id)
        {
            using (EduxContext _ctx = new EduxContext())
            {
                return(_ctx.AlunoTurma.FirstOrDefault(x => x.IdAlunoTurma == id));
            }
        }
예제 #3
0
        /// <summary>
        /// Busca um tipo de ObjetivoAluno por ID
        /// </summary>
        /// <param name="id">ID para pesquisa</param>
        /// <returns>ObjetivoAluno pesquisado</returns>

        public ObjetivoAluno BuscarID(int id)
        {
            using (EduxContext _ctx = new EduxContext())
            {
                return(_ctx.ObjetivoAluno.FirstOrDefault(x => x.IdObjetivoAluno == id));
            }
        }
예제 #4
0
 public void Adicionar(ProfessorTurma professorTurma)
 {
     using (EduxContext _ctx = new EduxContext())
     {
         _ctx.ProfessorTurma.Add(professorTurma);
         _ctx.SaveChanges();
     }
 }
        /// <summary>
        /// Adiciona um tipo alunoTurma
        /// </summary>
        /// <param name="alunoTurma">alunoTurma para ser adicionado</param>

        public void Adicionar(AlunoTurma alunoTurma)
        {
            using (EduxContext _ctx = new EduxContext())
            {
                _ctx.AlunoTurma.Add(alunoTurma);
                _ctx.SaveChanges();
            }
        }
예제 #6
0
 public DicaController(EduxContext context)
 {
     _context = context;
 }
 public PerfilRepository()
 {
     _ctx = new EduxContext();
 }
 public ObjetivoRepository()
 {
     _contexto = new EduxContext();
 }
예제 #9
0
 public RankingRepository()
 {
     _contexto = new EduxContext();
 }
예제 #10
0
 public TotalRepository()
 {
     _context = new EduxContext();
 }
 public ObjetivoAlunoController(EduxContext context)
 {
     _context = context;
 }
예제 #12
0
 public CursoController(EduxContext context)
 {
     _context = context;
 }
예제 #13
0
 public AlunoTurmaRepository()
 {
     _context = new EduxContext();
 }
예제 #14
0
 public TurmaRepository()
 {
     _ctx = new EduxContext();
 }
예제 #15
0
 public ProfessorTurmaRepository()
 {
     _ctx = new EduxContext();
 }
예제 #16
0
 public UsuarioRepository()
 {
     _ctx = new EduxContext();
 }
예제 #17
0
 public ObjetivoAlunoRepository()
 {
     _ctx = new EduxContext();
 }
예제 #18
0
 public DicaRepository()
 {
     context = new EduxContext();
 }
예제 #19
0
 public CursoRepository()
 {
     context = new EduxContext();
 }
예제 #20
0
 public CurtidaRepository()
 {
     _context = new EduxContext();
 }
 public CurtidaController()
 {
     _curtidaRepository = new CurtidaRepository();
     _ctx = new EduxContext();
 }
 public CategoriaRepository()
 {
     _ctx = new EduxContext();
 }
예제 #23
0
 public UsuarioController()
 {
     _usuarioRepository = new UsuarioRepository();
     _ctx = new EduxContext();
 }
예제 #24
0
 public DicaRepository()
 {
     _ctx = new EduxContext();
 }
 public InstituicaoController(EduxContext context)
 {
     _context = context;
 }
예제 #26
0
 public InstituicaoRepository()
 {
     context = new EduxContext();
 }
예제 #27
0
 public UsuarioController(EduxContext context)
 {
     _context = context;
 }
예제 #28
0
 public CursoRepository()
 {
     _ctx = new EduxContext();
 }
예제 #29
0
 public PostRepository()
 {
     _ctx = new EduxContext();
 }