Return auto key if entity inserted successfully.