API
DbSet.Find
Looks for a key in tracked entities before querying the store.
Formal Syntax & Structure
csharp syntaxcsharp
db.Books.Find(1)Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.db.Books.Find(1)