public void Guncelle(T entity) { using var context = new UygulamaContext(); context.Set <T>().Update(entity); context.SaveChanges(); }
public void Sil(T entity) { using var context = new UygulamaContext(); context.Set <T>().Remove(entity); context.SaveChanges(); }
public void Ekle(T entity) { using var context = new UygulamaContext(); context.Set <T>().Add(entity); context.SaveChanges(); }