How can I disable migration in Entity Framework 6.0

后端 未结 7 1494
傲寒
傲寒 2020-11-29 01:24

I\'m trying to ignore the \"Automatic\" migration using Entity Framework 6.0 rc1. My problem is that I don\'t want this feature right now and every time that my application

相关标签:
7条回答
  • 2020-11-29 02:07

    You can put this inside your entityFramework section of the app.config:

    <contexts>
      <context type="YourNamespace.YourDbContext, YourAssemblyName" disableDatabaseInitialization="true"/>
    </contexts>
    

    This msdn page tells all about the Entity Framework Configuration Section.

    0 讨论(0)
提交回复
热议问题