Invalid object name 'dbo.__MigrationHistory' using Database.Create; EF6.02 when connection string is passed in

后端 未结 4 447
故里飘歌
故里飘歌 2020-12-10 23:46

I experience an error when trying to create a database using the following code. Note the problem does not happen if the connection string is not passed in. Also the problem

4条回答
  •  春和景丽
    2020-12-11 00:31

    I forgot to add the database name in my connection string. After I added, it started to work

提交回复
热议问题