System.Data.Entity.Core.ProviderIncompatible Exception in MVC 5

前端 未结 6 1118
粉色の甜心
粉色の甜心 2021-01-01 22:05

I am creating an ASP.NET Web Application in mvc5 and i made a model class with a controller. My application is running but when i want to access my moviescontroller in url l

6条回答
  •  伪装坚强ぢ
    2021-01-01 22:48

    please use the correct connection string as provided in the tutorial:

     
    

    It is likely a problem with your authentication with the user sa.

    //Update

    I have just installed VS 2013 on my DevVM (Server 2008R2) I created an Asp.Net MVC 5 project and used nuget to add Entity Framework to the project. After this I created the models and added the connectionstring to the web.config Then I clicked controlles -> add -> scaffold, choose the model data context and name, hit add and then run the project. Works like a charm. All CRUD functionality is working.

提交回复
热议问题