Has anyone else tried using the Breeze.js server component in a solution with multiple Api controllers for multiple EF models?
I find that after calling a MetaData endpoint in one context, all subsequent calls to MetaData endpoints in other contexts return MetaData from the first context that was called, for example, I say that I have two Api controllers, each with its own MetaData Endpoint :
public class CoreController : ApiController { readonly EFContextProvider<CoreEntities> contextProvider = new EFContextProvider<CoreEntities>(); } public class FormsController : ApiController { readonly EFContextProvider<FormsEntities> contextProvider = new EFContextProvider<FormsEntities>(); }
A call to ~ / Core / MetaData will return JSON for the base model, however a subsequent call to ~ / Forms / MetaData will not return Forms JSON, but kernel metadata is returned instead. If I call them in the reverse order, I get Forms metadata both times, this problem persists until the host process returns.
I can confirm that I can access object data from both models as I expected, so I doubt that this is a routing problem.
Perhaps someone will tell me if there is any kind of caching somewhere that I need to disable?
Hello,
Tom Tregenna
source share