What is the Unit of Work pattern?
A Unit of Work coordinates changes and commits them together. EF Core DbContext tracks changes and SaveChanges normally acts as the unit-of-work commit bou
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1093–1104 of 3610 questions
A Unit of Work coordinates changes and commits them together. EF Core DbContext tracks changes and SaveChanges normally acts as the unit-of-work commit bou
A transaction groups operations into an all-or-nothing unit. ACID refers to atomicity, consistency, isolation, and durability.
Optimistic concurrency detects when a row changed since it was read, often using a rowversion or concurrency token. SaveChanges can throw DbUpdateConcurren
An index helps the database locate rows without scanning the entire table, but it consumes storage and adds write overhead. Index columns should reflect ac
Pagination limits response size. Offset pagination is simple; keyset pagination is often more efficient for large or frequently changing datasets.
Caching stores reusable data to reduce latency or backend load. IMemoryCache is local to one process; distributed caches such as Redis can be shared across
Output caching stores generated responses according to configured policies. It is useful for responses that can safely be reused across requests.
ILogger provides category-based structured logging with levels such as Trace, Debug, Information, Warning, Error, and Critical. Structured properties are e
Health checks report whether an app or its dependencies are healthy. Liveness asks whether the process should keep running; readiness asks whether it can a
OpenAPI describes endpoints, parameters, request/response schemas, and security requirements. Swagger UI can render an interactive documentation page from
Minimal APIs define HTTP endpoints with less ceremony than controller classes and support DI, filters, binding, and typed results.
Filters run at defined stages around MVC request processing. Common kinds include authorization, resource, action, exception, and result filters.