Added GetPrimaryKey

Allows people to use the repository to get the primary key based on the
same conventions, etc. that are used internally.