Add Controller in MVC4 not working

前端 未结 11 574
一向
一向 2020-11-30 08:58

I\'m using VS 2010 Premium. I have a MVC4 project using SqlCe 4.0 with a entity framework model.

Model is:

  public class ProjectBuild
    {
       p         


        
11条回答
  •  离开以前
    2020-11-30 09:41

    This is going to seem like the dumbest thing, but do you have a connection made to your database elsewhere? I was running into this same exact problem. I had the database open in the Server Explorer view (I had made a connection to my SDF file). Once I closed this connection, everything worked perfectly.

提交回复
热议问题