Place to put Database.SetInitializer

前端 未结 5 1439
萌比男神i
萌比男神i 2020-11-30 07:10

I\'m working on a project that at can end up with multiple UI versions / variants, but so far I\'ve got two subprojects in my solution Web - containing Web interface with A

5条回答
  •  被撕碎了的回忆
    2020-11-30 08:05

    Click Global.asax page and you find a Application_Start() method.Inside this method past this following code.For support this code use namespace using System.Data.Entity;

    Database.SetInitializer(null);
    

提交回复
热议问题