A connector device includes a motor-side connector 30 including a motor-side terminal 31, an inverter-side connector 60 including an inverter-side terminal 70, a motor case 10 including the motor-side connector 30, and an inverter case 50 including the inverter-side connector 60, the connectors 30, 60 being fitted together when the inverter case 50 is stacked on and fastened to the motor case 10 using bolts 120. When the fastening of the cases 10, 50 is completed, a predetermined gap is ensured between opposing surfaces 36B, 80A of the connectors 30, 60.