示例#1
0
 private void DetachAll(ICollection <TTable> entries)
 {
     foreach (var entry in entries)
     {
         _context.Entry(entry).State = EntityState.Detached;
     }
 }
 public void Update(Cliente obj)
 {
     _context.Entry(obj).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     _context.SaveChanges();
 }