Example #1
0
 public void personelEkle(Personeller P)
 {
     using (EFPersonellerContext eFPersonellerContext = new EFPersonellerContext())
     {
         eFPersonellerContext.Personeller.Add(P);
         eFPersonellerContext.SaveChanges();
     }
 }
Example #2
0
 public void personelSil(Personeller P)
 {
     using (EFPersonellerContext eFPersonellerContext = new EFPersonellerContext())
     {
         var sil = eFPersonellerContext.Entry(P);
         sil.State = EntityState.Deleted;
         eFPersonellerContext.SaveChanges();
     }
 }
Example #3
0
 public void personelGuncelle(Personeller P)
 {
     using (EFPersonellerContext eFPersonellerContext = new EFPersonellerContext())
     {
         var guncelle = eFPersonellerContext.Entry(P);
         guncelle.State = EntityState.Modified;
         eFPersonellerContext.SaveChanges();
     }
 }