Scaffolding controller doesn't work with visual studio 2013 update 2

后端 未结 16 3203
别跟我提以往
别跟我提以往 2020-11-27 03:54

PROBLEM:

I have updated to Visual Studio 2013 update 2 and now I cannot scaffold controllers.

The problem is not project specific: when I try to scaffold

16条回答
  •  我在风中等你
    2020-11-27 04:15

    i used Initializer and when remove/comment Initializer from myDbContext constructer , scaffolding work fine

    public myDbContext () : base("name=DefaultConnection")
        {
    
            //Database.SetInitializer(new DropCreateDatabaseIfModelChanges());
            //Database.Initialize(true);
        }
    

提交回复
热议问题