public void Save(IUpdateFactory <TDomainObject> updateFactory, TDomainObject domainObj) { using (DbCommand command = updateFactory.ConstructUpdateCommand(db, domainObj)) { db.ExecuteNonQuery(command); } }
public Updater(IUpdateFactory updateFactory) { _updateFactory = updateFactory; }