示例#1
0
 public void TSpointsAddStd(points points)   //Teachers ppoints tablosuna insert
 {
     using (odev_sql_OKULContext context = new odev_sql_OKULContext())
     {
         context.points.Add(points);
         context.SaveChanges();
     }
 }
示例#2
0
 public void Pointdel(points points) //Öğrencinin puan tablosunda kaydı var ise silinir
 {
     using (odev_sql_OKULContext context = new odev_sql_OKULContext())
     {
         //Öğrenci silme
         var entity = context.Entry(points);
         entity.State = System.Data.Entity.EntityState.Deleted;
         context.SaveChanges();
     }
 }