All matters and things required or which may be done by the district attorney may be done with like force and effect by his assistant under the direction and control of the district attorney, and he has all the powers of the district attorney by whom he was appointed; except that such acts shall all be done in the name of the district attorney.