Пример #1
0
 public static void Incluir(Ferias oFerias)
 {
     using (PROJETOACADEMIAEntities db = new PROJETOACADEMIAEntities())
     {
         db.Ferias.Add(oFerias);
         db.SaveChanges();
     }
 }
Пример #2
0
 public static List <Ferias> SelecionarPeriodoIgual(int idAluno, DateTime data)
 {
     using (PROJETOACADEMIAEntities db = new PROJETOACADEMIAEntities())
     {
         var res = (from p in db.Ferias where p.idAluno == idAluno && p.dataInicio <= data && p.dataFim >= data select p).ToList();
         db.Dispose();
         return(res);
     }
 }
Пример #3
0
 public static List <Ferias> SelecionarTodos(int idAluno, DateTime databaseFim)
 {
     using (PROJETOACADEMIAEntities db = new PROJETOACADEMIAEntities())
     {
         var res = (from p in db.Ferias where p.idAluno == idAluno && p.dataBaseFimPagamento == databaseFim select p).ToList();
         db.Dispose();
         return(res);
     }
 }