The answers I'm seeing here are for ObjectContext. Is there a property to determine an entity's primary key names when using DbContext?
Ah.. one of those times that I wish Entity Framework is open source! I can glean this primary key name information from .Find method :-)