Throw exception when no primary key and deleting.