public virtual bool Update(TDBModel obj) { this.CheckConstraint(obj); db.Entry(obj).State = EntityState.Modified; return(db.SaveChanges() > 0); }
public virtual bool Update(TDBModel obj) { this.CheckConstraint(obj); db.Entry(obj).State = EntityState.Modified; return(db.SaveChanges() > 0); }