Multi-Context InMemory Database

前端 未结 3 660
遇见更好的自我
遇见更好的自我 2020-12-11 17:21

Is it possible to have an InMemory database (ASP.NET Core) that is shared across multiple DbContexts? It seems that each DbContext type keeps its own database, even when the

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 17:34

    Beside the same database name, the model must also be the same. This means that in case of an own implementation of IModelCacheKeyFactory, it's Create-Method must return "equal" objects.

提交回复
热议问题