API
EntityEntry.State
Reads or sets tracking state; not a database commit status.
Formal Syntax & Structure
csharp syntaxcsharp
db.Entry(book).StateWorking Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.db.Entry(book).State