Skip to content

Register multiple IModels via RegisterInContainer #108

@timvandesteeg

Description

@timvandesteeg

I'm currently working on a POC to implement a single GraphQL service for multiple microservices. However, I can't seem to use more than one IModel via RegisterInContainer. Looking at the code (my complements on the high quality btw!), I see only the last one is actually used. Is it technically possible to allow multiple DbContexts to be used within the same service?

Or would you suggest to use one GraphQL endpoint per microservice?
Or create one additional DbContext that contains all entities in it's IModel and use that one instead?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions