Add Controller in MVC4 not working

前端 未结 11 589
一向
一向 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:20

    If you're using VS 2012, you will need to also tell EF to use SQL Compact instead of localDb.

    
    
      
        
      
    
    

    An easier way is to install the EF SQL Compact Nuget package.

    For more details, check out this blog entry.

提交回复
热议问题