Entity Framework Core NpgSql MVC application uses Scaffolded DbContext to access data.
DbContext is stored in separate assembly containing only this type.
If database structure is changed , new DbContext assembly is created in runtime using https://github.com/jdtcn/RuntimeEfCore as in-memory assemly.
This assembly can written to application home directory to replace existing DbContext.dll file.
After file is replacing application is still using old dbContext.dll file loaded at startup. How to force application to use new DbContext.dll file ?
How to force application to reload DbContext assembly so that new version is used?
ASP.NET 4.8 MVC re-loads application automatically if source dll file is replace . Is there similar feature it .NET 5 ?
Appilcation is running as Service in Debian Linux with Apache.