Dynamically changing schema in Entity Framework Core

后端 未结 10 2304
刺人心
刺人心 2020-11-28 09:02

UPD here is the way I solved the problem. Although it\'s likely to be not the best one, it worked for me.


I have an issue with working with EF

10条回答
  •  情书的邮戳
    2020-11-28 09:08

    There are a couple ways to do this:

    • Build the model externally and pass it in via DbContextOptionsBuilder.UseModel()
    • Replace the IModelCacheKeyFactory service with one that takes the schema into account

提交回复
热议问题