EF Code First Migration with Multiple Database / DbContext

后端 未结 3 1214
孤城傲影
孤城傲影 2020-12-29 00:04

I have two database each with their own dbcontext. I\'ve setup two migration configurations. I can add a migration for the first db ust fine (Add-Migration DB1_Initial

3条回答
  •  青春惊慌失措
    2020-12-29 00:51

    I've been able to answer my own question. My two configuration classes existed in the same namespace. As soon as I separated them, everything worked.

提交回复
热议问题