transfer switch is IMHO one of the better if not the best solution. In fact if you have the (in)famous WFCO charger system, there is a transfer switch made to attach to the back of it. then put a subpanel next to the switch for the outlets to run off shore and transfer power. Did that in my trailer and have it set so that only the microwave, and the outlets run off the transfer switch. That way can't accidentally try to run the fridge, charger, AC etc. off the battery bank inverter. Inverter is in the pass through close to the batteries and a remote power switch for the inverter is in the trailer for easy access to power on/off.
I did need to run power cable from the inverter up to the power panel in the trailer to the transfer switch.