Beispiel #1
0
 public void Delete(T t)
 {
     try
     {
         dbContext.Entry <T>(t).State = Microsoft.EntityFrameworkCore.EntityState.Deleted;
     }
     catch (Exception ee)
     {
     }
 }
Beispiel #2
0
 public void Update(Order order)
 {
     _dbContext.Entry(order).State = EntityState.Modified;
 }