© Adam Freeman 2018

Adam Freeman, Pro Entity Framework Core 2 for ASP.NET Core MVC, https://doi.org/10.1007/978-1-4842-3435-8_19

19. Working with Keys

Adam Freeman

(1)London, UK

Selecting the most suitable keys for your data sets the foundation for the rest of the data model. In earlier chapters, you have seen the role that keys play in uniquely identifying objects, the conventions that Entity Framework Core uses to select properties to use as keys, and how these conventions are overridden. In this chapter, I describe the advanced key features that Entity Framework Core provides. Like many of the features described in this part of the book, you are unlikely to need the advanced key features in every project that uses Entity Framework Core, but the ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.