Multiple DbContexts on one DB with Code First Migrations

前端 未结 2 969
南笙
南笙 2021-01-01 06:43

I stumbled uppon the same problem as described in this question. In addition, i didn\'t want to loose the __migrationHistory table from the database.

I tried it with

2条回答
  •  鱼传尺愫
    2021-01-01 07:08

    EF6 supports multiple DbContexts per database: http://entityframework.codeplex.com/wikipage?title=Multi-tenant%20Migrations

提交回复
热议问题