How to get the Primary Key(s) in Entity Framework 4.1, i.e. using DbContext

Viewed 8955

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 :-)

5 Answers
Related