API

DbContext.Set<T>()

Returns the set used to query and track entities of a mapped type.

Formal Syntax & Structure

csharp syntaxcsharp
db.Set<Book>()

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.db.Set<Book>()
C# & .NET Reference