public ListeAbsModel(miniProjet1DbContext db)
 {
     _db = db;
     SL  = _db.Seances.Include(n => n.matiere).ToList();
     EL  = _db.Etudiants.ToList();
     PL  = _db.Presences.Include(n => n.seance).Include(n => n.etudiant).ToList();
 }
 public TauxAbsEModel(miniProjet1DbContext db)
 {
     _db = db;
     SL  = _db.Seances.Include(n => n.matiere).ToList();
     EL  = _db.Etudiants.Include(n => n.filiere).ToList();
     FL  = _db.Filieres.ToList();
     PL  = _db.Presences.Include(n => n.seance).Include(n => n.etudiant).ToList();
     Fid = _db.Filieres.FirstOrDefault().id_fil;
     Eid = _db.Etudiants.Where(n => n.filiereID == Fid).FirstOrDefault().id_etu;
 }
 public EditFModel(miniProjet1DbContext db)
 {
     _db = db;
 }
Example #4
0
 public DeleteMModel(miniProjet1DbContext db)
 {
     _db = db;
 }
 public EditMModel(miniProjet1DbContext db)
 {
     _db = db;
     FL  = _db.Filieres.ToList();
     PL  = _db.Professeurs.ToList();
 }
 public PointageModel(miniProjet1DbContext db)
 {
     _db = db;
     SL  = _db.Seances.ToList();
 }
Example #7
0
 public IndexEModel(miniProjet1DbContext db)
 {
     _db = db;
     FL  = _db.Filieres.ToList();
 }
Example #8
0
 public IndexFModel(miniProjet1DbContext db)
 {
     _db = db;
 }
 public AjoutSModel(miniProjet1DbContext db)
 {
     _db = db;
     ML  = _db.Matieres.ToList();
 }
Example #10
0
 public AjoutPModel(miniProjet1DbContext db)
 {
     _db = db;
 }
Example #11
0
 public EditPrModel(miniProjet1DbContext db)
 {
     _db = db;
     SL  = _db.Seances.ToList();
 }
 public ListePrModel(miniProjet1DbContext db)
 {
     _db = db;
     SL  = _db.Seances.Include(n => n.matiere).ToList();
     EL  = _db.Etudiants.ToList();
 }