Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
Resolve issues with updating entities within the RepositoryBase class in Entity Framework where changes were not persisting to the database if the entity was both created and updated within the same scope. By explicitly marking the entity as tracked upon update, this change ensures that Entity Framework’s change tracker recognizes the modifications, facilitating accurate change detection and persistence within the database.
Checklist
[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[x] I have updated the documentation, if necessary
Summary & Motivation
Resolve issues with updating entities within the
RepositoryBase
class in Entity Framework where changes were not persisting to the database if the entity was both created and updated within the same scope. By explicitly marking the entity as tracked upon update, this change ensures that Entity Framework’s change tracker recognizes the modifications, facilitating accurate change detection and persistence within the database.Checklist