public Customer Update(Customer customer)
 {
     beautyShopDbContext.Entry(customer).State = EntityState.Modified;
     return(customer);
 }
示例#2
0
 public virtual void Update(T entity)
 {
     dbSet.Attach(entity);
     dataContext.Entry(entity).State = EntityState.Modified;
 }
示例#3
0
 public Customer Update(Customer customer)
 {
     beautyShopDbContext.Entry(customer).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     return(customer);
 }