Monthly Archives: February 2012

Code First Migrations: Making __MigrationHistory not a system table

Code First Migrations uses a table called __MigrationHistory as a place to store metadata about the migrations that have been applied to the database. Code First creates this table when it creates a database or when migrations are enabled. In … Continue reading

Posted in Code First, Code First Migrations, Entity Framework | Tagged , , , , | 16 Comments

Don’t use Code First by mistake

EF Code First is great and I use it all the time, even when mapping to existing databases. However, if your intention is to use a Database First flow, then it’s important that you don’t start to use Code First … Continue reading

Posted in Code First, Database First, DbContext API, Entity Framework | Tagged , , , , , , , , | 37 Comments

Why Entity Framework is releasing on NuGet only

EF 4.2 and 4.3 were released via NuGet only—there are no MSI installers. The up-coming EF 5.0 release will continue this pattern. But why NuGet and why only NuGet? It’s not because NuGet is awesome, even though it is, or … Continue reading

Posted in Entity Framework | Tagged , | 40 Comments