public void Update(T obj) { db.Entry(obj).State = EntityState.Modified; db.Entry(obj).Property(x => x.CreatedDate).IsModified = false; Save(); }
public void Update(T obj) { db.Entry(obj).State = EntityState.Modified; db.Entry(obj).Property(x => x.CreatedDate).IsModified = false; Save(); }