Beispiel #1
0
 public void ADDOffreEmploi(OffreEmploi off)
 {
     using (ProjetEntities P = new ProjetEntities())
     {
         P.OffreEmploi.AddObject(off);
         P.SaveChanges();
     }
 }
Beispiel #2
0
 public void DeleteOffreEmploi(OffreEmploi off)
 {
     using (ProjetEntities ce = new ProjetEntities())
     {
         var req = ce.OffreEmploi.Where(etu => etu.IdOffre == off.IdOffre).First();
         ce.OffreEmploi.DeleteObject(req);
         ce.SaveChanges();
     }
 }
Beispiel #3
0
        public void UpdateOffreEmploi(OffreEmploi newConv)
        {
            using (ProjetEntities ce = new ProjetEntities())
            {
                var req = (from p in ce.OffreEmploi
                           where p.IdOffre == newConv.IdOffre
                           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();
            }
        }