示例#1
0
 public void Guncelle(T entity)
 {
     using var context = new UygulamaContext();
     context.Set <T>().Update(entity);
     context.SaveChanges();
 }
示例#2
0
 public void Sil(T entity)
 {
     using var context = new UygulamaContext();
     context.Set <T>().Remove(entity);
     context.SaveChanges();
 }
示例#3
0
 public void Ekle(T entity)
 {
     using var context = new UygulamaContext();
     context.Set <T>().Add(entity);
     context.SaveChanges();
 }