Martin Normark's Blog
  • Home
  • About
  • Contact
Sign in Subscribe

entity framework

A collection of 3 posts
ASP.NET MVC

Entity Framework Migrations "Cheat Sheet"

I’m a big fan of Entity Framework [http://www.nuget.org/packages/EntityFramework/5.0.0] (Code First [http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx] , aka. Magic Unicorn Edition [http://www.hanselman.com/blog/EntityFrameworkMagicUnicornAndMuchMoreIsNowOpenSourceWithTakeBacks.aspx] ), and in particular I am really beginning to like
Aug 1, 2013 7 min read
C#

Entity Framework: Update single column

Yesterday I blogged about how to delete a detached entity [https://martinnormark.com/entity-framework-delete-record-by-id-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 sure your
Dec 2, 2012 1 min read
C#

Entity Framework: Delete Entity by Id - Using Detached Instance

Entity Framework [http://msdn.microsoft.com/en-us/data/ef.aspx] 5, with the Code First [http://www.codeproject.com/Articles/468777/Code-First-with-Entity-Framework-5-using-MVC4-and] 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
Dec 1, 2012 1 min read
Page 1 of 1
Martin Normark's Blog © 2023
Powered by Ghost