Resetting Entity Framework Migrations to a clean Slate

Posted by: Rick Strahls WebLog, on 14 Jan 2016 | View original | Bookmarked: 0 time(s)

I've had a number of problems with Entity Framework Migrations getting out of whack to the point were I can't get the database and the migrations into sync to accept new changes. I've found that rather than spending hours fixing out of whack migrations it's sometimes much easier to simply wipe the slate clean and create a new initial migration. This post describes the steps on how to remove existing migrations and create a new initial migration from the current schema. ...

Category: XSD | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 106 | Hits: 1

Similar Posts

  • Resetting Entity Framework Migrations to a clean Slate more
  • Talking Points: ADO.NET Entity Framework more
  • Best approach for teaching first exposure to Entity Framework more
  • More on Foreign Keys in EF more
  • Overloading Entity Framework Methods: More GetObjectStateEntries more
  • WPF Series: IFrameworkElement - the missing interface more
  • Delete Stored Procs and Navigations in the Entity Data Model more
  • Sneak Peek at the EntityDataSource Control more
  • Inheritance and the Entity Framework more
  • Choosing LINQ to Entities vs Entity SQL vs. EntityClient more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD