How to implement IModelCacheKeyFactory in EF Core

前端 未结 2 1722

The story: in our multi-tenant app (one PostgreSql db, multiple schemas) we need to use one DbContext against multiple schemas.

What I tried: holding a cache (Dictio

2条回答
  •  借酒劲吻你
    2020-12-10 17:21

    There actually have demo project in docs https://github.com/aspnet/EntityFramework.Docs/tree/master/samples/core/DynamicModel adding post for convinience !

提交回复
热议问题