Beispiel #1
0
 public void UpdateEmployee(Employee entity)
 {
     context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     context.SaveChanges();
 }
Beispiel #2
0
 public void updateSample(Sample entity)
 {
     context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     context.SaveChanges();
 }