Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to use new version of DbContext assembly after old version is loaded

$
0
0

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.


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>