Beispiel #1
0
 public void Update(CustomerRecord customer)
 {
     _context.SaveChanges();
 }
Beispiel #2
0
 public CustomerRecord Create(CustomerRecord customer)
 {
     Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry <CustomerRecord> entry = _context.Customers.Add(customer);
     _context.SaveChanges();
     return(entry.Entity);
 }