Entity Framework stopped working

Our website Entity Framework stopped working with an error after we updated our version from DotNet 5 to DotNet 6.
Turns out we needed to update our Nuget packages. The Entity Framework package needed to be updated because did not work properly with DotNet 6.
Published our website and all working ok now. This is linked to our other article "Web deployment task failed".