Beispiel #1
0
 public void ADDCandidat(Condidat c)
 {
     using (ProjetEntities P = new ProjetEntities())
     {
         P.Condidat.AddObject(c);
         P.SaveChanges();
     }
 }
Beispiel #2
0
 public void Deleteconditat(Condidat c)
 {
     using (ProjetEntities ce = new ProjetEntities())
     {
         var req = ce.Condidat.Where(etu => etu.CIN == c.CIN).First();
         ce.Condidat.DeleteObject(req);
         ce.SaveChanges();
     }
 }
        private void FixupCondidat(Condidat previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.Utilisateur, this))
            {
                previousValue.Utilisateur = null;
            }

            if (Condidat != null)
            {
                Condidat.Utilisateur = this;
            }
        }
Beispiel #4
0
        public void UpdateCondidat(Condidat newConv)
        {
            using (ProjetEntities ce = new ProjetEntities())
            {
                var req = (from p in ce.Condidat
                           where p.CIN == newConv.CIN
                           select p).FirstOrDefault();
                //req.Date_deb = newConv.Date_deb;
                //req.Date_fin = newConv.Date_fin;
                //req.Periodicite = newConv.Periodicite;
                //req.Code_regroup = newConv.Code_regroup;
                //req.Type_convention = newConv.Type_convention;
                //req.branche = newConv.branche;


                ce.SaveChanges();
            }
        }
Beispiel #5
0
        private void FixupCondidat(Condidat previousValue)
        {
            if (previousValue != null && previousValue.Entretien.Contains(this))
            {
                previousValue.Entretien.Remove(this);
            }

            if (Condidat != null)
            {
                if (!Condidat.Entretien.Contains(this))
                {
                    Condidat.Entretien.Add(this);
                }
                if (CIN != Condidat.CIN)
                {
                    CIN = Condidat.CIN;
                }
            }
        }