checks if primary key is set (for non-nullable member types like int or long, 0 is considered as non-set)
See Implementation
checks if primary key is set (for non-nullable member types like int or long, 0 is considered as non-set)