If you want to wire an outlet for a generator backfeed it should be with 4 wires. L1,L2,N,G. most newer generators come with 4 wire twist lock receptacles. If you are using a generator that puts out 220V and has a 3 wire receptacle the 3rd wire treated as a neutral. NEC does not allow for a ground conductor to be a current carrying conductor. The only place the G and N are connected is at the main panel by code. The frame of the generator should be grounded by either a earthing ground rod or a separate wire to building ground. Also, NEC requires a UL listed manual or automatic transfer switch to connect a generator to the electric service.