API

EF Core DbSet<T>

Represents entities of a given model type and supports querying.

Formal Syntax & Structure

csharp syntaxcsharp
ctx.Books.Where(b => b.Stock >= 2)

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.ctx.Books.Where(b => b.Stock >= 2)
C# & .NET Reference