fixed an issue with PK that are not identities in EF 6