EntityState
EntityState is a concept often encountered in software development, particularly within the context of data persistence and Object-Relational Mapping (ORM) frameworks. It represents the current status of an entity object as it relates to its data source, such as a database. When an entity object is first created in memory, it is typically considered to be in an Added state, indicating that it does not yet exist in the persistent store.
As an entity object is loaded from the data source, it is usually in an Unchanged state.
An entity object can also be explicitly removed from the data source. In such cases, its state