Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to call AddModel at runtime (not during Startup time) in V8? #2347

Closed
raffaeler opened this issue Nov 5, 2020 · 1 comment

Comments

@raffaeler
Copy link

Version 8.0 on .NET 5

Question: Is it possible to call "AddModel" at runtime (from my own service)?
The goal is to iterate over:

  • dynamically load an assembly containing the models, dbcontext and the odata controller
  • add the odata model in a separate AssemblyLoadContext
  • make it available for requests
  • use this stuff
  • on a specific request, unload the AssemblyLoadContext from the memory (including the models, EDM, dbcontext and the odata controller)

TIA

@Sreejithpin
Copy link
Contributor

We will track the related issue in the core repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants