예제 #1
0
 public async Task UpdateAsync(AlipayUser user)
 {
     _context.Entry(user).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     await _context.SaveChangesAsync();
 }
예제 #2
0
 public async Task LockOrderAsync(Order order)
 {
     order.State = (int)OrderStatus.Locked;
     _context.Entry(order).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     await _context.SaveChangesAsync();
 }