示例#1
0
 public override void Update(ProductCategory t)
 {
     db.ProductCategories.Attach(t);
     db.Entry <ProductCategory>(t).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
 public override void Update(Customer t)
 {
     db.Customers.Attach(t);
     db.Entry <Customer>(t).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
示例#3
0
 public override void Update(Sale t)
 {
     db.Sales.Attach(t);
     db.Entry <Sale>(t).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
 public override void Update(JobApplication t)
 {
     db.JobApplications.Attach(t);
     db.Entry <JobApplication>(t).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
示例#5
0
 public virtual void Update(T entity)
 {
     dbSet.Attach(entity);
     dataContext.Entry(entity).State = EntityState.Modified;
 }