Unable to update database to match the current model because there are pending changes and automatic migration is disabled

后端 未结 5 843
渐次进展
渐次进展 2021-01-13 07:40

I, for the life of me, can\'t get rid of this error message. I have tried almost everything that I can.

MyDBContext.cs

        public MyDBContext() :         


        
5条回答
  •  滥情空心
    2021-01-13 07:58

    In my case the error was resolved by adding a DatabaseInitializerForType... appSetting.

    
    
    

提交回复
热议问题