Entity Framework 5 code-first not creating database

后端 未结 4 1537
星月不相逢
星月不相逢 2020-12-25 13:33

I\'m trying to create a new database using the code first concept of Entity Framework. However when running the code the database isn\'t created (using the DropCreateD

4条回答
  •  执笔经年
    2020-12-25 14:06

    +1 for the detailed question.

    Check that your connection string is pointing at the correct database and add the authorization attributes like this to access your database:

    
    

提交回复
热议问题