// private static List<Aluno> alunos = new List<Aluno>();

        public void inserir(Matricula obj)
        {
            using (since2013bdEntities db =
                       new since2013bdEntities())
            {
                db.Matriculas.Add(obj);
                db.SaveChanges();
            }
        }
 public void inserir(Disciplina obj)
 {
     using (since2013bdEntities db =
                new since2013bdEntities())
     {
         db.Disciplinas.Add(obj);
         db.SaveChanges();
     }
 }
        public Matricula Localizar2(int cod)
        {
            Matricula model = null;

            using (since2013bdEntities db =
                       new since2013bdEntities())
            {
                model = db.Matriculas.Find(cod);
            }
            return(model);
        }
        public Disciplina Localizar2()
        {
            Disciplina model = null;

            using (since2013bdEntities db =
                       new since2013bdEntities())
            {
                model = db.Disciplinas.Find();
            }
            return(model);
        }
        public Matricula Localizar()
        {
            Matricula lista = null;

            using (since2013bdEntities db = new since2013bdEntities())
            {
                lista = (from u in db.Matriculas
                         select u
                         ).FirstOrDefault();
            }
            return(lista);
        }
        public Disciplina Localizar()
        {
            Disciplina lista = null;

            using (since2013bdEntities db = new since2013bdEntities())
            {
                lista = (from u in db.Disciplinas
                         select u
                         ).FirstOrDefault();
            }
            return(lista);
        }