The instance of entity type cannot be tracked issue
My app is using Entity Framework with repository pattern.
There are 3 services. A, B, C. There’s a Repository R for entity_r. All of these are registered as AsTransient
. The code looks somewhat like this (simplified for brevity) –
Unable to query entity after adding Json Column (EF Core 8)
We’re extending out some of our database models by leveraging new json features released with entityframework core 7, however after adding the property, we’re no longer able to retrieve data without it throwing the following: