Testing With a Fake DbContext

Posted on February 14, 2012. Filed under: Entity Framework, Testing, Visual Studio | Tags: , , , , , , , |

One of the most popular posts on my blog has been “EF CTP4 Tips & Tricks: Testing With Fake DbContext”. That post was built on a pre-release version of Entity Framework so I thought I’d provide an updated post on top of the DbContext API surface we ended up shipping. In this post we are [...]

Read Full Post | Make a Comment ( 7 so far )

Running & Scripting Migrations from Code

Posted on February 9, 2012. Filed under: Entity Framework, Visual Studio | Tags: , , , , |

Code First Migrations is included as part of Entity Framework starting with the EF 4.3 release. Migrations are normally created and run from the Package Manager Console in Visual Studio. These commands are just thin wrappers over public APIs that you can call directly from your own code. In this post you’ll see how to [...]

Read Full Post | Make a Comment ( 9 so far )

Customizing Code First Migrations Provider

Posted on January 16, 2012. Filed under: Entity Framework, Visual Studio | Tags: , , , , |

Code First Migrations is included as part of Entity Framework starting with the EF 4.3 release. One feature we haven’t really blogged about yet is the ability to include additional arguments in a migration operation. These arguments are then made available to the SQL generator. You can then derive from the SQL generators that we [...]

Read Full Post | Make a Comment ( 4 so far )

Magic Free Code First Migrations

Posted on July 29, 2011. Filed under: Entity Framework, Visual Studio | Tags: , , , , |

This post is now out of date. Be sure to check out EF 4.3 Beta 1.   <transparency>I work for Microsoft</transparency> (just kidding… but I couldn’t leave the tag open) We recently released a very early preview of Code First Migrations and it’s been getting some mixed feedback, the negative feedback falls into three buckets: [...]

Read Full Post | Make a Comment ( 15 so far )

EF 4.1 Multi-Tenant with Code First

Posted on May 23, 2011. Filed under: Entity Framework | Tags: , , |

After a long break while we got EF 4.1 (Magic Unicorn Edition) polished up and shipped it felt like time to get some content up on here again. We’ve released some good introductory content for EF 4.1 on the MSDN Data Developer Center so I thought I’d dive into something a little more advanced. The [...]

Read Full Post | Make a Comment ( 6 so far )

EF CTP4 Tips & Tricks: Testing With Fake DbContext

Posted on September 7, 2010. Filed under: Entity Framework | Tags: , , , , , , , , |

  This post is based on a pre-release version of Entity Framework. An updated post is available here.     This is the sixth in a series of posts about the recently released Entity Framework Feature CTP4, now affectionately known as “EF Magic Unicorn Edition”. In this post we are going to take a look [...]

Read Full Post | Make a Comment ( 33 so far )

EF CTP4 Tips & Tricks: Querying Navigations Without Loading

Posted on August 14, 2010. Filed under: Entity Framework | Tags: , , , , , , , , |

This is the fifth in a series of posts about the recently released Entity Framework Feature CTP4, now affectionately known as “EF Magic Unicorn Edition”. Today we are going to take a look at how to query the contents of the navigation property of a loaded entity without loading the contents of that navigation into [...]

Read Full Post | Make a Comment ( 5 so far )

EF CTP4 Tips & Tricks: Running Additional DDL

Posted on July 31, 2010. Filed under: Entity Framework, Visual Studio | Tags: , , , , , , , |

This is the fifth in a series of posts about the recently released Entity Framework Feature CTP4, now affectionately known as “EF Magic Unicorn Edition”. For this post I’m going to assume you have a basic knowledge of Code First using DbContext. One common question I hear is “how do I include additional indexes (or [...]

Read Full Post | Make a Comment ( 4 so far )

EF CTP4 Tips & Tricks: WCF Data Service on DbContext

Posted on July 19, 2010. Filed under: Entity Framework, Visual Studio | Tags: , , , , , , , |

This is the fourth in a series of posts about the recently released Entity Framework Feature CTP4, now affectionately known as “EF Magic Unicorn Edition”. For this post I’m going to assume you are somewhat familiar with the Productivity Improvements for EF and WCF Data Services. You can download the completed VS2010 project from this [...]

Read Full Post | Make a Comment ( 13 so far )

EF CTP4 Tips & Tricks: Mapping to an Existing Database

Posted on July 18, 2010. Filed under: Entity Framework, Visual Studio | Tags: , , , , , , |

This is the third in a series of posts about the recently released Entity Framework Feature CTP4 (AKA “EF Magic Unicorn Edition”). Most of the samples/demos of Code First so far have focused on creating a new database that is generated from a set of classes, however Code First also can be used in scenarios [...]

Read Full Post | Make a Comment ( 21 so far )

EF CTP4 Tips & Tricks: Find

Posted on July 15, 2010. Filed under: Entity Framework, Visual Studio | Tags: , , , , |

This is the second in a series of posts taking a quick look at the some of the features in the recent Entity Framework Feature CTP4, also recently dubbed “EF Magic Unicorn Edition”. In the last post we looked at Include with lambda and today we are going to look at the new Find method. [...]

Read Full Post | Make a Comment ( 4 so far )

EF CTP4 Tips & Tricks: Include with Lambda

Posted on July 14, 2010. Filed under: Entity Framework, Visual Studio | Tags: , , , , |

The release of Entity Framework Feature CTP4 was recently announced and included some walkthroughs touching on the core functionality included in the CTP. Over the next couple of weeks I’m going to post up a series of short articles that cover some of the finer points in the CTP. The CTP includes some work called [...]

Read Full Post | Make a Comment ( 23 so far )

Entity Framework (EF) – Events

Posted on June 28, 2009. Filed under: Entity Framework | Tags: , , , |

Introduction In this post we are going to take a look at some of the events that are raised by various parts of the Microsoft ADO.NET Entity Framework (EF). I’m using the recently released Beta 1 of Visual Studio 2010 / .Net Framework 4.0 for this demo but most of the information also applies to [...]

Read Full Post | Make a Comment ( 5 so far )

NTier with Entity Framework (EF) 4 Beta 1 – (VS2010 / .Net 4.0 Beta 1)

Posted on June 26, 2009. Filed under: Entity Framework | Tags: , , , , , |

Introduction My blog has been feeling very neglected after my move to the US and I thought with the recent release of Visual Studio 2010 / .Net Framework 4.0 Beta 1 it would be a good time to get back into a regular blogging rhythm.  So for the first post I thought I’d run through [...]

Read Full Post | Make a Comment ( None so far )

    About

    Rowan works as a Program Manager for the ADO.NET Entity Framework team at Microsoft. He speaks at technical conferences and blogs at http://romiller.com. Rowan lives in Seattle, Washington with his wife Athalie. Prior to moving to the US he resided in the small state of Tasmania in Australia. Outside of technology Rowan's passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS

    Meta

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.

Join 25 other followers