All my entities has property Id. All my tables in database has auto-generated integer identity Id as primary key.
I have generic method to Create entities.
I
With POCO entities, you'd have to use an interface, reflection, or dynamic.
dynamic
With EntityObject entities you can read the EntityKey property.
EntityObject
EntityKey