Quick home electric question

As stated earlier, get a licensed electrician! Most likely they will put a transfer switch between the incoming electrical feed & the generator. This will "safely" switch when power goes out, as to not backfeed the generator to local power. You DO NOT want to have a city electrical inspector drop a not very nice piece of paper in your hands because the hook up was done without permits, & by an unlicensed person. Ask me how I know this. LOL