This documentation is for EF Core. For EF6.x, see Entity Framework 6.
This extension is not maintained as part of the Entity Framework Core project. When considering a third party extension, be sure to evaluate quality, licensing, support, etc. to ensure they meet your requirements.
Retrieve the primary key (including composite keys) from any entity as a dictionary.
The following resource will help you get started with EntityFrameworkCore.PrimaryKey.