Connecting a generator to a home requires a safe transfer method so generator power cannot feed back into the public grid.
The electrician should review generator capacity, essential appliances, cable size, breaker protection, the electrical panel and the transfer method. Backfeeding through a socket is unsafe.
A manual or automatic transfer switch prevents the grid and generator from being connected at the same time. The right choice depends on load and panel condition.
If you plan to connect a generator to the home, an electrician should inspect the panel, calculate load and choose a safe wiring setup.