While I have done it in the past back feeding is not a wise choice unless you know what you're doing and know the risks, like Larry mentioned a simple mistake can be deadly to others. The proper setup is a sub panel to power what you'd like off the generator. The transfer switch is used to switch the power source into the panel, utility vs generator; this can be automatic or manual and should match the generators start type.