ASP.NET MVC Entity Framework Migrations "Cheat Sheet" I’m a big fan of Entity Framework (Code First, aka. Magic Unicorn Edition), and in particular I am really beginning to like code first migrations, which makes it easy for you to not only migrate your database step by step, but as an
C# Entity Framework: Update single column Yesterday I blogged about how to delete a detached entity using Entity Framework 5 by only using its Id. A common practice in many applications today is to not actually delete the entity from the database, but instead mark it as deleted and make
C# Entity Framework: Delete Entity by Id - Using Detached Instance Entity Framework 5, with the Code First approach can do some pretty powerful things without much effort. Create your model classes, and it spins up a brand new and shiny database for you. But sometimes you do need to tweak a few things in